HomeCSharpPage 7

CSharp

Showing 121 - 140 of 961 results
This post will explain how you can check if a string is null or string contains only whitespace orin C#....
C# Error CS1528 – Expected ; or = (cannot specify constructor arguments in declaration) Reason for the Error & Solution...
C# Error CS2033 – Cannot create short filename ‘{0}’ when a long filename with the same short filename already exists...
If wanna send email through gmail as the SMTP provider from your .NET application , here’s a sample code snippet...
This post will explain the different ways to assign the null values to the Nullable Datetime and explain how to...
C# Error CS1666 – You cannot use fixed size buffers contained in unfixed expressions. Try using the fixed statement. Reason...
C# Error CS1604 – Cannot assign to ‘{0}’ because it is read-only Reason for the Error & Solution Cannot assign...
You can install or add Dapper to the project in one of the two ways as shown below. 1. Using...
C# Error CS2021 – File name ‘{0}’ is empty, contains invalid characters, has a drive specification without an absolute path,...
C# Error CS0730 – Cannot forward type ‘{0}’ because it is a nested type of ‘{1}’ Reason for the Error...
C# Error CS0815 – Cannot assign {0} to an implicitly-typed variable Reason for the Error & Solution Cannot assign ‘expression’...
C# Error CS8131 – Deconstruct assignment requires an expression with a type on the right-hand-side. Reason for the Error &...
C# Compiler Error Message CS0037 -Cannot convert null to ‘type’ because it is a non-nullable value type Reason for the...
C# Error CS1526 – A new expression requires an argument list or (), [], or {} after type Reason for...
There are 2 options for the developers to declare a constant value in their C# application.1. readonly2. const If you...
C# Compiler Error CS0136 – A local variable named ‘var’ cannot be declared in this scope because it would give...
C# Error CS1031 – Type expected Reason for the Error & Solution Type expected A type parameter is expected. Example...
C# Error CS4033 – The ‘await’ operator can only be used within an async method. Consider marking this method with...
C# Compiler Error CS0112 – A static member ‘function’ cannot be marked as override, virtual or abstract Reason for the...
C# Compiler Error CS0431 – Cannot use alias ‘identifier’ with ‘::’ since the alias references a type. Use ‘.’ instead...