Select top N elements of related objects
I have a class `Product` to hold a specific instance of a given product. This class has a list of related products that are similar to main product. ``` class Product { public string Name; pu...
Visual Studio 2017 - What happened to Expression interactions?
I make extensive use of Expression interactions' CallMethodAction to handle events from XAML in a MVVM-friendly way. I have just created a new WPF project in VS2017 and now I see the old Expression n...
- Modified
- 27 Mar at 13:53
Do compiled expression trees leak?
In my understanding, JIT-ed code never gets released from memory while the program is running. Does this mean that repeatedly calling `.Compile()` on expression trees leaks memory? The implication of...
- Modified
- 27 Mar at 08:17
Difference between Xamarin.Forms and Xamarin Cross Platform
I've been 2 years with Xamarin Environment and mostly I used Xamarin.Forms. But yet, I have no idea what Xamarin Cross Platform is? Can anyone provide some structural differences?
- Modified
- 26 Mar at 16:55
Unsupported media type ASP.NET Core Web API
On the front-end i use Angular to collect som data from the form and send it to my server-side controllers. As the image shows below, i get the data ($scope.newData) on my controller and service, but ...
- Modified
- 26 Mar at 10:48
Auto Versioning in Visual Studio 2017 (.NET Core)
I have spent the better part of a few hours trying to find a way to auto-increment versions in a .NETCoreApp 1.1 (Visual Studio 2017). I know the the AssemblyInfo.cs is being created dynamically in t...
- Modified
- 25 Mar at 17:48
How to read/interpret a raw C# stack trace correctly?
I'm reading some crash reports from a UWP application (C#, compiled with .NET Native) and I'm having a hard time understanding the exact syntax/format used in the stack traces. I tried looking for som...
- Modified
- 23 May at 11:46
C# Authentication failed because the remote party has closed the transport stream
I want to point out that I have searched a lot for this without a solution. So, I've created a loop that will go throw listBox2 that contains links, each time creating a http GET request in order to a...
- Modified
- 25 Mar at 12:50
Implicit conversion fails when changing struct to sealed class
Struct/class in question: ``` public struct HttpMethod { public static readonly HttpMethod Get = new HttpMethod("GET"); public static readonly HttpMethod Post = new HttpMethod("POST"); pu...
- Modified
- 27 Mar at 10:44
Authenticating user with Facebook using Servicestack (Java & Swift)
I'm using servicestack client in my Android(Java) and iOS(Swift) applications but I need to authenticate users with facebook and google, Do you know if exists a module like [https://github.com/xamari...
- Modified
- 24 Mar at 22:40
jsonpatch path to update array object by object ID
I am trying to figure out the best way to patch a collection of objects. I am trying to change the sort order of a number of objects and was thinking jsonpatch may be the right approach. My Object L...
- Modified
- 17 Aug at 14:41
EntityFrameworkCore does not exist in the namespace Microsoft
I am trying to walk through this tutorial here. [https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro](https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro) However after succ...
- Modified
- 24 Mar at 21:1
How to iterate through keys and values of an `IDictionary`?
How would I iterate through the keys and values of an `IDictionary` if I don't know the concrete types of the keys and values within, therefore want to just treat them as `object`s? If I do something...
- Modified
- 24 Mar at 15:40
Error while trying to run project: Unable to start program. The request is not supported
I'm having problems launching an application with VS2017 on Windows 10. Starting in Debug mode, a popup apperars with the message: *Error while trying to run project: Unable to start program ''. The r...
- Modified
- 7 May at 07:18
Why do most serializers use a stream instead of a byte array?
I am currently working on a socket server and I was wondering Why do serializers like - [XmlSerializer](https://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer(v=vs.110).aspx...
- Modified
- 24 Mar at 13:50
Restrict anything but TLS 1.2 serverside WCF
I have a simple question but can't find an answer anywhere. I have a WCF-Server-Application. I want it to use ONLY TLS1.2. I have no control over the client and am not able to edit the SCHANNEL settin...
Why would one use Task<T> over ValueTask<T> in C#?
As of C# 7.0 async methods can return ValueTask<T>. The explanation says that it should be used when we have a cached result or simulating async via synchronous code. However I still do not understand...
- Modified
- 24 Mar at 18:16
VS2017 command line build (missing "%VS150COMNTOOLS%VSVars32.bat")
I have installed VS2017 and call ``` call "%VS120COMNTOOLS%VSVars32.bat" ``` from the command line but all I get is ``` '"%VS150COMNTOOLS%VSVars32.bat"' is not recognized as an internal or externa...
- Modified
- 24 Mar at 10:3
How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit?
I downloaded Postman for Linux (from [https://www.getpostman.com/apps](https://www.getpostman.com/apps)), unpacked .tar.gz file into `~/bin/postman` and then tried to execute `~/bin/postman/Postman/Po...
How to convert any pascal case JSON object to camel case JSON object?
I tried using CamelCasePropertyNamesContractResolver, however it does not convert pascal property names into camel casing? Note: this is an example only, my json input is unknown, I only the json pas...
- Modified
- 24 Mar at 07:51
In Angular, What is 'pathmatch: full' and what effect does it have?
In here it is use pathmatch as full and when i delete this pathmatch it doesn't even load the app or run the project ``` import { NgModule } from '@angular/core'; import { BrowserModule } from '@angu...
- Modified
- 22 Jun at 11:7
Passing arguments to dotnet test project?
I have the test class below in a .NET Core 1.1 Unit Test project (not an xUnit Test project) in Visual Studio 2017. How do I pass command line arguments to `TestMethod`? ``` [TestClass] public class T...
- Modified
- 28 Dec at 09:29
What is the purpose of "pip install --user ..."?
From `pip install --help`: ``` --user Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%\Python on Windows. (See the Python documentat...
- Modified
- 25 Feb at 18:58
TypeError: cannot convert the series to <class 'float'>
I have a dataframe (df) that looks like: ``` date A 2001-01-02 1.0022 2001-01-03 1.1033 2001-01-04 1.1496 2001-01-05 1.1033 2015-03-30 126.3700 2015-03-31 1...
- Modified
- 5 May at 12:32
Multithread error not caught by catch
Following is a complete console program that reproduces a strange error I have been experiencing. The program reads a file that contains urls of remote files, one per line. It fires up 50 threads to d...
- Modified
- 24 Mar at 05:26