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,545,084 questions
0votes
0answers
2views

c# programming visualizing on the web application

i have two projects in c# console application and web application and I want to visualize the console result on web application using signalr and socket programming . How do solve it? Please Help me!!
0votes
0answers
9views

UWP SDK and .net framework

I am working on a program where I need to be able to interface with both a DJI drone and a RIGOL spectrum analyzer. The DJI drone uses a UWP SDK while the spectrum analyzer I believe only uses the ...
0votes
0answers
7views

FFmpeg.AutoGen decoding an image using av_image_copy_to_buffer

I try to use FFmpeg.AutoGen.av_image_copy_to_buffer to get decoded data into my application defined frame_buffer like so: bytes_decoded = ffmpeg.av_image_copy_to_buffer(frame_data, buffer_size, frame-&...
0votes
0answers
10views

C# get read list into listbox

I am working on a project, where I use netsh to get all wlan networks and later get the keys. At first I had 3 applications and 2 .txt files, where I transfered information between those appications. ...
0votes
0answers
11views

Microsoft.identitymodel.clients.activedirectory.tokencache threw an exception in Xamarin

I am getting this error while login to my xamarin application through ios simulators.It's working fine in emulator and uwp.Please help me on this.
0votes
0answers
6views

can't add reference to solution explorer

I need to use a namespace called [system.windows.forms][1] in my C# file, while it tells me that "forms" does not exist in bla bla. I looked it up and found that it needs to be added from ...
0votes
0answers
8views

How to add RDLC report inside a asp.net core project and pass data?

I have an old .net framework project. Now I am trying to convert that project to asp .net core. I have several RDLC report inside the old project. Now I want to use those reports inside my new asp.net ...
0votes
0answers
9views

Power point VSTO Addin How to Distingush Save and SaveAs on PresentationBeforeSave

I have a word, excel and ppt vsto addin written with C#. My boss says that if users click save button, sometimes i need to show an alert that this is forbidden (after some business rules). However, ...
0votes
0answers
10views

Admin Username and password need to hard code in C# to run the current application with Admin privileges

Hi i am new to c# and working on one application that will rename the current windows host name to a predefined name, and it is hardcoded in my c# code. Now when i run my application with Admin ...
0votes
1answer
14views

Groovy Script and C# Integration

We have a console application running in C#, and we need to integrate a groovy script with that. Is there a way to do that? Of course I google it before coming here, and the only useful result I got, ...
0votes
1answer
14views

How do I post the row id in a custom built ASP.NET Core Razor Pages editable Grid?

I have tried several approaches, and as I'm new to Razor Pages in ASP.NET Core I'm blocked. Could anybody help me please? It must be something trivial but I googled quite a lot and I can't find a ...
2votes
0answers
36views

What is the technical relation between a delegate (function pointer, which is written as lambda expression) and LINQ?

I understand that: Delegate is a function pointer and useful to pass a function as a parameter so that the function can be invoked from within another function. Anonymous function means a function ...
0votes
0answers
9views

unable to start debugging the startup project could not be launched an API code exited abnormally in visual studio 2022

an api call exited abnormally. (exception from hresult: 0x800300fa (stg_e_abnormalapiexit)) in visual studio, for this I put the entire project into c://User//Source//Repo, but still not get solution, ...
0votes
0answers
10views

Updating an api endpoint, that runs an import, to take it a date/period to backfill missing data

I want to update an endpoint that runs a spot rate import, to take in a date or something to control the file that gets imported. So far I had it hardcoded to last month. I wondering if how I would ...
0votes
0answers
25views

What is the purpose of giving the class name in the `ToList<ClassName>`?

I am looking at the following code example: IList<Student> studentList = new List<Student>() { new Student() { StudentID = 1, StudentName ="John", ...

153050per page