Data dodania Pytanie
2017-01-04 15:01 Convert a string to ordinal upper or lower case »
Is it possible to convert a string to ordinal upper or lower case. Similar like invariant. string upperInvariant = "ß".ToUpperInvariant(); string lo...
(0) odpowiedzi
2017-01-04 15:01 ASP.NET Web API Globalization Input Format »
ASP Web API and ASP Controllers have auto conversion for inputs: [HttpGet] public IActionResult Get(decimal? money, DateTime dateTime){ // some l...
(1) odpowiedzi
2017-01-04 14:01 Compile razor views for middlewares in Microsoft.AspNetCore.Diagnostics netstandard library »
I am trying to edit some parts of Microsoft.AspNetCore.Diagnostics library But I cannot edit razor files like CompilationErrorPage.cshtml Even after...
(0) odpowiedzi
2017-01-04 11:01 Where are generic methods stored? »
I've read some information about generics in .ΝΕΤ and noticed one interesting thing. For example, if I have a generic class: class Foo<T> ...
(3) odpowiedzi
2017-01-04 10:01 Automatically increment version number in ASP .NET Core »
I'm developing a REST API using ASP.NET Core and want the version number to be automatically incremented. This used to be easily by the following patt...
(0) odpowiedzi
2017-01-04 10:01 Are WebApi 2 request calls processed in logical threads of execution from stack? »
When ASP.NET Web Api 2 processes requests in asynchronous manner are they considered logical threads of execution? I.e. does setting up CallContext...
(0) odpowiedzi
2017-01-04 01:01 Is it possible to await a null literal? »
You can await anything in C# 5+ so long as the type has a function called .GetAwaiter() that returns a special object or has a extension method that d...
(2) odpowiedzi
2017-01-03 22:01 Xamarin csrf-token missing or incorrect using HttpClient »
I'm trying to run a post request with my Xamarin app. My backend is a Django app which allows all cross origin: CORS_ORIGIN_ALLOW_ALL = True There ...
(0) odpowiedzi
2017-01-03 19:01 Why does the SelectedIndexChanged event fire in a ListBox when the selected item is modified? »
We are given a Windows Form Application created from Microsoft Visual Studio's template (designer code on PasteBin 1 2 3 4) with a default ListBox exa...
(1) odpowiedzi
2017-01-03 15:01 Cookies created by Javascript not seen by C# (ASP.NET Razor) »
I'm setting a cookie in Javascript: document.cookie = "lang=" + lang + ";path=/;domain=" + window.location.hostname + ";"; If I check the cookies i...
(1) odpowiedzi
2017-01-03 14:01 C# 7 ValueTuple compile error »
I'm using VS2017 RC and my application targets net framework 4.6.1. I have two assemblies referencing System.ValueTuple 4.3 MyProject.Services MyPro...
(1) odpowiedzi
2017-01-03 11:01 How to use Route in Controller Level »
Here i'm trying to call WebApi Controller using [Route] attribute Why is http://localhost:57997/Hello/Jan/1 not a configured route while http://loca...
(2) odpowiedzi
2017-01-03 10:01 Exception trying to use attribute routing with autofac »
I have a problem with dependency injection when I'm trying to add custom route attribute on my action. Everything is working fine when I'm trying to u...
(1) odpowiedzi
2017-01-03 08:01 "Async All the Way Down": Well, what's all the way at the bottom? »
I'm trying to fully understand async-await and one of the gaps in my understanding is seeing what is "All the Way Down." I create an async method, it ...
(5) odpowiedzi
2017-01-03 03:01 what's the issue here?? webapi + angular + post »
Something weird is happening .... and I don't really understand why.... This post works only if change the id parameter type from int to object. I kn...
(1) odpowiedzi
2017-01-02 13:01 WebApi different DTO for Get and Post »
Is it ok to have different DTO's for GET and POST actions ? The reason for this is there is usually a vast difference between these two data models. ...
(1) odpowiedzi
2017-01-02 13:01 Get response data from SendAsync method ASP.net web API Message Handlers »
I want to fetch returned data from Web api and save in my database. My Message handler code is here: protected override async Task<HttpResponseMe...
(1) odpowiedzi
2017-01-02 12:01 Get Type of a nested Generic class in a Generic class in C# »
In my project I use the following class: Filter<T>.Checker<U> which also has the interface IChecker. It looks like this: class Filter<...
(2) odpowiedzi
2017-01-02 12:01 Date picker in razor view with restriction »
Hello supposing i have a model with a field like this: (mvc5) [DataType(DataType.Date)] [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyForm...
(2) odpowiedzi
2017-01-02 11:01 Retaining order with LINQ using .Contains »
I have read this question about retaining order in a list, but I didn't see anything about using the .Contains() method, hence why I'm asking this que...
(1) odpowiedzi
2017-01-02 10:01 Suggest data structure suitable for key range lookup »
I am looking for data structure similar to SCG.Dictionary but having number ranges as keys. Main operation where the most of performance is required ...
(1) odpowiedzi
2017-01-02 08:01 How to check if string contains list value and separately if contains but with other value »
I'm trying to figure out how to define if string contains/does not contains list value and if contains but with other value. If I have input string...
(2) odpowiedzi
2017-01-02 01:01 How can I relocate my MVC6 folders to another folder and still have them work »
I'm using MVC6, and I can't figure out how to relocate these folders in my project: MyWebApp Controllers ViewModels Views I...
(1) odpowiedzi
2017-01-01 23:01 Linq OrderBy dependencies on other entities »
I have collections of entities that I need to sort depending on their dependencies to each other. Here's an example because it's fairly tough to expla...
(1) odpowiedzi
2017-01-01 19:01 Application and User Authentication using ASP.NET Core »
Can anyone point me to some good documentation or provide good information on the best way to implement authentication and authorisation for an ASP.NE...
(0) odpowiedzi
2017-01-01 13:01 Can delegates change parameters in delegate chain? (C#) »
We have 1 event, 2 subscribers. When event rises 1st subsriber (function) change parameter and this parameter is of reference type. Will the second su...
(1) odpowiedzi
2017-01-01 12:01 Get random items with fixed length of different types »
I have a List<Fruit>, public class Fruit { public string Name { get; set; } public string Type { get; set; } } and the list above con...
(3) odpowiedzi
2017-01-01 12:01 No database provider has been configured for this DbContext for get method in Asp.netCore »
I create an web api project by Asp.net core, and i added an api controller to it(by the name BlogController), in blog controller i have a get method G...
(1) odpowiedzi
2017-01-01 00:01 How to create regex for a arbitrary string of digits that must be equal and can optionally be separated by space »
I've spent about 3 hours trying to create a regex to validate a coordinate string that's homebrew (but based on MGRS). I've always had a rough time wi...
(2) odpowiedzi
2016-12-31 21:12 c# What makes the difference between the two this keywords in the constructor below? »
I don't understand the following: In the code found below, Visual Studio tells me, that I can simplify my code by deleting the second this keyword in...
(3) odpowiedzi
2016-12-31 19:12 Get value for each of array from another table in Web Api LINQ-Asp »
I have a 'Skill' table where i store skills. And in 'Job' table i store all required skill when post job lile UpWork. Employeers have checkbox to sele...
(1) odpowiedzi
2016-12-31 13:12 How to create a library that targets both .NET 2.0 and .NET Standard? »
I have a small library that currently supports .NET 2.0+. I don't use any features of the later framework versions so it would be nice to keep 2.0 su...
(1) odpowiedzi
2016-12-31 12:12 Applying group by in a LINQ Query, the information required in further join is lost »
I have the following models: public class Course { public int Id { get; set; } public string Name { get; set; } } public class Course_Tution...
(2) odpowiedzi
2016-12-31 12:12 Is it possible to check TempDate inside if condtion in mvc5? »
I want to check TempData inside of if condition. But I am getting an error. My Controller public ActionResult Customer(PurchaseViewModel purchasevie...
(1) odpowiedzi
2016-12-31 06:12 Architecture Token Authentication: Web API, Xamarin and External Authentication »
Background I'm developing an app using Xamarin (app) and a Web API (Endpoints). The app does not implement its own authentication and it uses Externa...
(1) odpowiedzi