What's the difference between 'extends' and 'implements' in TypeScript
I would like to know what and have in common and how they differ. ``` class Person { name: string; age: number; } class Child extends Person {} class Man implements Person {} ```
- Modified
- 24 Nov at 18:43
RestSharp error when shared as a dependency and different publicKeyTokens
Using APIs from `Docusign`, `Twilio` and `Auth0`. All 3 have `RestSharp.dll` as a dependency. If I use the `RestSharp.dll` included with the `Docusign` package, `Docusign` works well but `Auth0` and ...
- Modified
- 8 Aug at 16:48
Cancelling Item_Open causes crash
I am writing an office addin using c# and Microsoft.Interop libraries. When I cancel the opening of an appointment in the Item_Open event by setting the Cancel property to false, it causes Outlook to...
- Modified
- 27 Dec at 12:48
Angular routerLink does not navigate to the corresponding component
My routing in the angular2 apps works well. But I am going to make some routeLink based on [this](https://angular.io/docs/ts/latest/guide/router.html): Here is my routing: ``` const routes: RouterConf...
- Modified
- 15 Feb at 19:17
ServiceStack and Angular 2
Can anyone guide me on how to make Angular 2 with TypeScript work on a self hosted ServiceStack service? I had it running with Angular 1 and Razor but now...I am lost.
- Modified
- 8 Aug at 15:0
Copy Paste in Bash on Ubuntu on Windows
How to execute a copy paste operation from Windows 10 to the Bash on Ubuntu on Windows environment? I tried the following: - - Any suggestions?
- Modified
- 1 Sep at 13:0
fluentvalidation error message contains c# property name and not client side json property name?
I have a C# WebApi project and i am using FluentValidation.WebApi package for validation of client inputs. Below is my model class code which has C# property named "IsPremium". This same property has ...
- Modified
- 7 May at 04:0
Sqlserver.exe has stopped working
Since installing Visual Studio 2015 Update 3 I have been getting the below error. It happens only when Visual Studio 2015 is open and happens whether I am running as a local admin or not. It is freque...
- Modified
- 8 Aug at 13:9
Selenium: Drag and Drop from file system to WebDriver?
I have to test a web-application which contains a drag and drop area for uploading files from the local file system. My test environment is based on C#. For the automation testing I have used Seleniu...
- Modified
- 23 Jan at 10:26
How to use Dapper with Linq
I'm trying to convert from Entity Framework to Dapper to hopefully improve data access performance. The queries I use are in the form of predicates like so `Expression<Func<TModel, bool>>`. To give an...
- Modified
- 7 Jun at 15:11
How to convert a dynamic object to JSON string c#?
I have the following dynamic object that I'm getting from a third party library: ``` IOrderStore os = ss.GetService<IOrderStore>(); IOrderInfo search = os.Orders.Where(t => t.Number == "test").FirstO...
- Modified
- 24 Oct at 12:34
How to convert an Object {} to an Array [] of key-value pairs in JavaScript
I want to convert an object like this: ``` {"1":5,"2":7,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0} ``` into an array of key-value pairs like this: ``` [[1,5],[2,7],[3,0],[4,0]...
- Modified
- 29 Oct at 18:8
Format DateTime.Now to yyyy-mm-dd
I want to convert the DateTime.Now to the format of `yyyy-mm-dd` since that is the only format that i can use in my query that i want to include. The default `format` of `DateTime.Now` looks like `5/1...
Where Sticky Notes are saved in Windows 10 1607
It seems like Sticky Notes are no longer saved in `%AppData%\Microsoft\Sticky Notes\` I even did a search for `*.SNT` with no results. It seems like Microsoft have changed the way Windows handles No...
- Modified
- 8 Aug at 07:19
Body of Http.DELETE request in Angular2
I'm trying to talk to a somewhat RESTful API from an Angular 2 frontend. To remove some item from a collection, I need to send some other data in addition to the removée unique id(that can be appende...
- Modified
- 22 Dec at 10:24
How do we authenticate against a secured NuGet server with Cake build?
We are working on automating our builds using Cake Build and we use NuGet packages from nuget.org but we also have our own NuGet Feed server which has a username/password authentication to access. Ho...
- Modified
- 7 Aug at 20:22
Include property but exclude one of that property's properties
Let's say I have a method like this in one of my controllers: ``` [Route("api/Products")] public IQueryable<Product> GetProducts() { return db.Products .Include(p => p.Category); } `...
- Modified
- 13 Aug at 22:5
Bridge- vs Strategy-Pattern
I know, this question was asked many times, but I did some research and still don't get it, probably you can help me out: As stated many times, the UML is almost the same. Also the implementation and ...
- Modified
- 11 Aug at 18:34
BASE64 to image angular 2
I'm trying to show an image get from a remote server with angular 2. In my component I have an object that is an "university_info" object that is my model. ``` export class myClass { university_...
Configuring DbContext Constructor
I'm trying to use EF Core tools to manage an SqlServer database I'm designing in a C# class library. It's in a class library because I need to use the database schema in both an MVC6 website and some ...
- Modified
- 6 Aug at 23:32
Hosting ASP.NET Core application on shared Linux hosting
Now asp.net core has been released so we can develop/deploy .net application on any platform. I am trying to play with asp.net core and able to run my application on ubantu os(On Virtual Machine). Bu...
- Modified
- 15 Oct at 12:47
Servicestack Authentication IsAuthenticated always false
Hi am trying to use OAuth authentication provided by servicestack ``` plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] { new BasicAuthProvider(), new LinkedInOAuth2Pr...
- Modified
- 6 Aug at 17:42
Servicestack: restrict MVC action by role
I want to restrict an ASP.NET MVC action for a role. I think it should be something like this: ``` [Restrict(RestrictPermission = new []{Permissions.Admin, Permissions.Admin_Export })] public class ...
- Modified
- 6 Aug at 12:44
Xamarin.Forms - Button Pressed & Released Event
I want to my event to trigger when button , but I can only find event in Xamarin.Forms. I believe there must be some work around to get this functionality. My basic need is to . It seems to be a ver...
- Modified
- 6 Aug at 10:18
How to return 401 instead of 302 in ASP.NET Core?
I'm trying to get ASP.NET Core Identity to return 401 when a user isn't logged in. I've added an `[Authorize]` attribute to my method and instead of returning 401 it returns 302. I've tried a ton of s...
- Modified
- 9 Mar at 16:36