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# 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...