Explore C# on Experts Exchange

Expert Solutions for Your Tech Problems


C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsof...

Read more
  • 96K Content
  • 11K Contributors

Expert Spotlight
Co-Founder and Chief Architect

Does a little bit of everything, but specifically likes working with Powershell, C#, and MSSQL.  Lives in space in an orbiting castle.

Troubleshooting Solution

excel cannot complete this task with available resources


I use Powershell to combine about 900 csv files then convert to an Excel file. It has been fine …

The var keyword

Was the var keyword really …

200 universities just launched 560 free online courses. …

200 universities just launched 560 free online courses. Here’s the full list

Async and Multi-Threading in C# in Plain English

A lot of developers have the wrong ideas about async code and multi-threading and how it all works, or how to use it. Here, you'll learn the differences between the two concepts and implement each one in C#.
If Else

Logical Expressions in .NET

For many programmers something like: if (someState != someOtherState && someState == someOtherOtherState || someState == someOtherOtherOtherState) { .... } Is a common pattern. I am here to discuss alternatives to this pattern which will reduce *code smells* within code analyzers.

Andy's VMware vSphere tip#19: vSphere Clients :- need to …

Andy's VMware vSphere tip#19: vSphere Clients :- need to find and download the older legacy C#, …
Troubleshooting Solution

Proper use of Application.Doevents in C#

I have a button on a winform in C#. The code looks like this          

lblBankTrxs.Text = "Begin …
Troubleshooting Solution

itextsharp text exceptions invalidpdfexception pdf header signature not found

I have the following where I am converting the bytes to pdf
Getting an error saying  PDF header …
Troubleshooting Solution

How to copy a List<string> in C# .NET5

I am attempting to copy a List<string> into a temporary variable to work on.  However, when I call …
Troubleshooting Solution

How do I get the unique ID after insert?

Hi - thanks for looking.

I need to be able to capture the unique key once I have done an INSERT …
Research Solution

How do i use the Web for customers to register their software and maintain a yearly subscription?

I developed an application in MS Access. It is a tool that is 24 years old and I use it every day. I …
Troubleshooting Solution

linq syntax error


all I want to do is select FromDate value and store it in the FromDate parameter.

I can't fix my …
Troubleshooting Solution

C# running background worker executes twice

I am trying to use background worker for the first time. The problem I am having is that the code …
Troubleshooting Solution

Async method not returning:  DescribeAsync<JObject>()

public async Task<JObject> GetGlobalObjectDescription(string sObjectName) { …
Troubleshooting Solution

Replacing "\" in C#

I want to replace "\" into "\\" in C# to check an existing path.


    string s = "c:\temp";
Research Solution

TSQL Script that can identify SSIS packages that using SSL certificates in their operations.

Hi EE,

Are there any TSQL Scripts that can identify SSIS packages that using SSL certificates in …
Troubleshooting Solution

Publish VS Web Site to GoDaddy

I have a very simple web site that I've developed in VS 2019 Community, using C#,  and I want to …
Troubleshooting Solution

VisualStudio is adding characters to filename rendering it unusable

I'm working in Visual Studio using razor.  I have a file, "AllCodes.txt."  I want to open that file, …
Troubleshooting Solution

C# when to use static method vs non static method.

Hi experts I'm new to C# and am just getting my head around methods and when to use a static method …
Troubleshooting Solution

DataSet to JSON file and back from JSON file to DataSet

Hi all, I'm trying to send a dataset to a JSON file and than back to a dataset in C#.  The file …

Do more with Experts Exchange.

Get Answers

Join a Group Discussion


Monitor your Site

Explore solutions and more