Questions Tagged [C#]

C# (pronounced "see sharp") is a high level, statically typed, multi-paradigm programming language developed by Microsoft. C# code usually targets Microsoft's .NET family of tools and run-times, which include .NET, .NET Framework and Xamarin among others. Use this tag for questions about code written in C# or about C#'s formal specification.

1,543,430 questions
0 votes
0 answers
3 views

IIS10 Is throwing a 404 Error Code When Asked To Serve .asp/.aspx Pages

My company needs to add some features to our websites that necessitate ASP.NET features. I have a MVC ASP.NET web application hosted locally on IIS 10 that has these new features. However, all of my ...
0 votes
0 answers
4 views

Need a treeview with 3 levels actually have 2 levels

i need a 3 level treeview, group,device,channel now there is only device,channel ...........................................................................................................................
0 votes
0 answers
5 views

target frame detached Selenium c#

I wrote a class to automaticly translate text with selenium. When the translate button is pushed the page doesn't reload completly, I assume this happens with Javascript. I added a wait function to ...
-1 votes
0 answers
23 views

CS0165 Use of unassigned local variable 'num' line -16

using System; using System.Runtime.CompilerServices; internal sealed class PrivateImplementationDetails { internal static uint ComputeStringHash(string s) { uint num; ...
0 votes
0 answers
8 views

Reversing pagination results

I have some data in my database as below ID, Name, PriorityOrder 1 , AA, 1 2 , BB, 2 3 , CC, 3 4 , DD, 4 5 , EE, 5 6 , FF, 6 7 , GG, 7 8 , HH, 8 9 , II, 9 I have a grid using ...
  • 1,871
0 votes
0 answers
14 views

Handling clients c# java

I'm trying to do server multi client handle in java and client in c#. I don't know what's blocking if you can help me: Java server: public static void Server(int port){ ServerSocketFactory ...
0 votes
0 answers
17 views

IENumerable is readonly.. but it isn't?

many topics on this question. Wondering why sometimes the collection is readonly, and sometimes not. I came across an issue in a netCore 3.1 project where the intention was to modify a collection ...
  • 428
0 votes
0 answers
14 views

Exclude null JValues from JSON response C#

Having this JSON structure : [ { "Id": 885758, "IssueId": 611932, "Pinpoint": { "Name": null, "Position": { "X&...
1 vote
0 answers
15 views

CA1508 - line is never 'null'. Remove or refactor the condition(s) to avoid dead code

Code Block in question: using var content = new StringContent( JsonSerializer.Serialize(executeRequest, new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }), System....
0 votes
0 answers
13 views

Why won't this function recognize when an item exists in both lists and when it doesn't C#?

I have 2 lists, each filled with file names. Some of the files in list1 are in list2 but some aren't. As a result I am trying to make a function that goes through list1, and if the file is in list1 ...
0 votes
0 answers
8 views

Get Correct Response From External API using HTTP Client

I am following the developer docs of this website: Yoco Charge API. I am using C# with Dotnet core 6 for my backend server, I can see the request does return with 201 however my api always comes back ...
0 votes
0 answers
19 views

Why no warning for null reference with WaitForShutdown()?

I'm using .NET 6 on Ubuntu. I have this code: WebApplication? app = null; app.WaitForShutdown(); var urls = app.Urls; The second line does not give a warning about app possibly being null. The third ...
  • 361
0 votes
0 answers
4 views

Livingdoc generates report only for last run test

I am new to Specflow. I have 20 features and passed. But when I generated the Livingdoc report, it shows passed for only the last executed feature. It shows "Not executed" for the rest of ...
-5 votes
0 answers
12 views

Create java server multiple client server and c# client receiver [closed]

I try to find Java server multiple client and C# client but i don't found it. I need Java server can handle multiple client & send back text and c# client can send text to the Java server.
0 votes
0 answers
7 views

How to send outlook mail as rest api

I am trying to send an outlook mail using postman. Is there any rest service from Microsoft to give that feasibility? I have gone through a few links and found the below API but looking for an ...

15 30 50 per page
1
2 3 4 5
…
102896
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest