11,811 questions with Developer technologies | C# tags

Sort by: Updated
3 answers

Linq Query efficiency

Hello, Any ideas on how to make the below more efficient? It is taking too long. The lstAllCombs has 150,000 records. List<SpecLevel> lstRankRangeSumRankPartition = lstAllCombs .GroupBy(p => (p.RankRange0Count, p.RankRange1Count,…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-07-24T08:19:38.8233333+00:00
Naji Afache 40 Reputation points
answered 2026-07-24T12:15:43.6066667+00:00
AgaveJoe 31,366 Reputation points
4 answers

JSON file parsing

consider having different section in the JSON file , how to handle that problem { "connectionString":{ }, "SMTP":{ } }

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-07-23T10:53:30.4466667+00:00
Venkatesh H 0 Reputation points
answered 2026-07-24T05:36:37.32+00:00
Rudzani Mafela 0 Reputation points
2 answers One of the answers was accepted by the question author.

Comparing List<T>

Hello everyone and thanks for the help in advance. I have a WebApi application that accepts a List<tblResults> where the model for tblResults looks like: public class tblResults { public int Record_ID { get; set; } public int Description { get;…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-07-17T16:50:17.87+00:00
Kmcnet 1,421 Reputation points
commented 2026-07-24T02:31:18.9433333+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

How to read the HTTP Body in an IIS Managed Module without breaking an ASP.NET Core Azure Web App?

I am trying to intercept and read incoming HTTP traffic using a custom managed .NET module (IHttpModule) on a Windows-based Azure Web App. I am able to successfully fetch the context.Request and context.Response parameters, headers, and metadata.…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-07-09T15:37:38.7866667+00:00
Shemesh, Tchelet 35 Reputation points
commented 2026-07-22T12:36:20.91+00:00
Shemesh, Tchelet 35 Reputation points
3 answers One of the answers was accepted by the question author.

Best ASP.NET approach + modern hybrid mobile tech for content/tool sites like CitizenPass.ca?

I run a portfolio of Canadian-focused content and web tool sites (similar in concept to CitizenPass.ca and CitizenApp.ca — bilingual EN/FR informational platforms with quiz/practice-test style tools, content pages, and a companion mobile app). I'm…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-07-09T17:16:43.7733333+00:00
Youness Haji 40 Reputation points
commented 2026-07-14T02:32:53.6766667+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
2 answers

How do I read a text file in C# and convert its contents to Morse code?

I'm building a C# console application in Visual Studio. I want to read text from a .txt file and convert each character to Morse code. What's the best way to organize the character mapping? Should I use a Dictionary<char, string>? A sample…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-07-04T11:42:42.1666667+00:00
Mac son 0 Reputation points
commented 2026-07-13T02:43:11.16+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
3 answers

HttpWebRequest timeout not working

The following code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(sRequest); // Create(sQuery); request.Credentials = CredentialCache.DefaultCredentials; request.Timeout = 10000; …

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
Developer technologies | ASP.NET Core | Other
asked 2021-11-10T15:21:18.593+00:00
Boyd Mills 0 Reputation points
answered 2026-07-02T14:55:17.8566667+00:00
Bruce (SqlWork.com) 84,671 Reputation points
1 answer

how can i set the path for Dependencies in xxx.deps.json?

Hello, I have a number of DLLs (C# projects) that are loaded by a third-party EXE. Each of these DLLs has a .deps.json file listing its dependencies. The individual DLLs cannot be located in the same directory. If all the dependencies of a DLL are…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-06-22T21:05:07.5466667+00:00
Rosenbohm, Mario 40 Reputation points
commented 2026-06-30T06:30:28.39+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

How do you read an SMS and MMS message using .NET MAUI (on Android only)?

I'd like to read an SMS and/or MMS message on an Android device only, but from within my .NET MAUI app. Specifically, I want to save any received (MMS) picture that has been texted to me plus any associated (SMS) text. Is this possible with .NET MAUI…

Developer technologies | .NET | .NET Multi-platform App UI
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2024-06-19T23:12:35.5966667+00:00
Gene Magpayo 20 Reputation points
answered 2026-06-25T14:36:23.23+00:00
2 answers One of the answers was accepted by the question author.

Script not Working for large data in C#

The arrayGroup below will be containing almost 190,000 int arrays. so filtering them to retrieve groups of arrays in the array group that have two or more common digits is taking forever. I am using the linq expression below, any ideas to make this more…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-06-17T22:46:52.22+00:00
Naji Afache 40 Reputation points
commented 2026-06-23T02:27:11.0566667+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
2 answers

learning to code

how do i learn c# skills online using step by step instructions and what software will i need to install on my pc?

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-06-13T11:57:10.0366667+00:00
Kieran Patel 0 Reputation points
commented 2026-06-22T02:37:58.6+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Mongo DB - update server to a new version

Hi, 1.I'm using Maui app in version 9, in VS 2026 , last update. 2.I'm using Mongo: with this app as follow: Server: version 7.0.3. Client (compass): version 1.42.2 There is vulnerability in server version, please see , and use Google Translate to…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2025-12-31T08:58:55.19+00:00
Dani_S 5,581 Reputation points
answered 2026-06-18T07:34:21.2433333+00:00
Jack Dang (WICLOUD CORPORATION) 18,975 Reputation points Microsoft External Staff Moderator
2 answers

upload file to one drive

How to upload file to one drive from dot net core 10 web app

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-06-10T03:15:50.18+00:00
hirenkumar patel 0 Reputation points
commented 2026-06-18T02:11:55.6933333+00:00
Danny Nguyen (WICLOUD CORPORATION) 7,675 Reputation points Microsoft External Staff Moderator
2 answers

Fabric Semantic Model - Add member to Role through API

Hi all, I am trying to develop a C# integration with Microsoft Fabric to generate semantic models programmatically (https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model). So far, I was able to create the semantic…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2025-10-03T20:36:00.5133333+00:00
Perez Lemme, Ignacio 0 Reputation points
commented 2026-06-14T02:52:19.1133333+00:00
BALAJI VENKATASUBRAMANIYAR 0 Reputation points
5 answers One of the answers was accepted by the question author.

Enhance the way of linear search

Hi, To C# linear search below any advice to apply the following way on the above?

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-05-31T04:50:50.82+00:00
Jonathan 300 Reputation points
edited a comment 2026-06-12T07:06:29.5866667+00:00
Nancy Vo (WICLOUD CORPORATION) 7,825 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Question about JSON (De)Serialization using System.Text.Json.

This is a Q about JSON (De)Serialization using System.Text.Json. There are three classes involved, abbreviated here: internal class FolderState { /// <summary> /// Stack elemens /// </summary> /// …

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-06-04T19:56:26.8533333+00:00
WoodManEXP 80 Reputation points
commented 2026-06-08T03:10:24.99+00:00
Jay Pham (WICLOUD CORPORATION) 3,815 Reputation points Microsoft External Staff Moderator
6 answers

Blazor - Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

Hi, I have an issue with a Blazor page. Sometimes I receive the following error message on the browser's console view: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 This is strange, because this error message…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor

A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.

1,702 questions
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2022-03-29T14:57:37.95+00:00
Gábor Varga 36 Reputation points
recommended 2026-06-05T14:01:00.5733333+00:00
JuliaMarvin 20,735 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

Excel Interop/DCOM to OpenXml/EPPlus

Hi, In our server side application, clients can upload .xlsm files (after they modified a macro). Then the server is using these .xslm as a model to create new file, add data in sheets and run the macro. (server is doing that as jobs at night because…

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-06-04T16:18:44.83+00:00
Alain PAPET 20 Reputation points
accepted 2026-06-05T12:15:12.41+00:00
Alain PAPET 20 Reputation points
3 answers

If class variable stored in stack and object in the managed heap then where the class properties get stored in C# .NET?

If I create an Employee class and this class have 2 members EmployeeId and EmployeeName so where these properties and it's value get stored either in managed heap or stack or both in C# .NET?

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2026-05-28T17:35:32.5833333+00:00
Jairaj Kushwaha 0 Reputation points
commented 2026-06-05T03:46:50.8366667+00:00
Taki Ly (WICLOUD CORPORATION) 2,980 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

.net sdk 5.0 setup failed. how can i fix it?

0x80070659 - This installation is forbidden by system policy. contact your system administrator but I am the administrator, this is my personal computer windows version - Windows 10 Home 21H1 19043.1110

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

11,811 questions
asked 2021-07-20T18:23:00.333+00:00
kokokorev 21 Reputation points
answered 2026-05-31T19:21:20.11+00:00
Jim Murray 0 Reputation points