I use this code to download a file from a link: since the file is around 200 Mb, I want to track the progress of the download. I have also tried t ...
I use this code to download a file from a link: since the file is around 200 Mb, I want to track the progress of the download. I have also tried t ...
I was using the "or pattern" in my C# code, but I am getting the following error: CS8370 Feature 'or pattern' is not available in C# 7.3. Please u ...
so we can give any number of parameters to a method, like this: but ... what if we wanted to get the "100, 50, 200, 350" from the USER? in above ex ...
I started digging around about spans, and I have found official reference information that it is supported as System.Span<T> since .NET Standard ...
I have a console application that uses .NET Framework 4.8, and I need it to connect to an Azure SQL database, I have simplified the issue to the follo ...
I'm converting an old application over from VB.Net to C# and got most of the converting done, but ran into an error message that should not be there ( ...
I want to use the "is" operator to unwrap Nullable. Something like: The workaround I'm using: Using an additional variable in this case is ugly: ...
I am building an generic SelectListItem to be used with a dropdown. Trying to cast an Enum of type T to its type , but Iam missing something. Localize ...
So I'm trying to utilize C# 8 in my .NET 4 web application by adding two entries in my .csproj file right inside the PropertyGroup node. But for so ...
So after searching for similar questions, I haven't seen any results. The error that keeps popping up is Feature 'target-typed conditional expres ...
I'm using C# 7.3 on Visual Studio 2019 (Version 16.9.2). The IDE allows me to use the null-coalescing operator and it builds without errors. I don't ...
I'm working on source code which processes 2GB of data which represents 60 seconds of network traffic. The total processing time is around 40 seconds. ...
i'd like to know if there's an opinion how to combine 2 cases of my switch, which are almost the same, but one is for nullable value and the second is ...
I have the following piece of codes. class Program { static void Main(string[] args) { Enterprise.Initialize("Awesome Company"); ...
I have 3 models 1st Model 2nd Model and here is 3rd model which suppose to do a job of getting and seting values of other two models but it ret ...
I have a project that build locally but not when deployed in azure using github + kudu integration. It complains about the C# version being 7.3 If I ...
More than probably this is a conceptual misunderstood but I want to know why. I've a static method that can return one generic value T, and it also r ...
I'd like to parse this XML blob: And I'd like to put the data into a List<NFLTeam> where NFLTeam is: Such that if I parse the blob above a ...
From the below URL: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters#enum-constraints It read ...
I have a simple WPF application that has a data grid. What I want is to select and set focus data grid row once I click a button. When the row is sele ...