HomeCSharpPage 20

CSharp

Showing 381 - 400 of 961 results
The SqlConnectionStringBuilder was introduced in .NET 2.0 that is used to build the database connection string specific for the SQL Server. The MSDN defines it as “Provides...
C# Error CS1512 – Keyword ‘base’ is not available in the current context Reason for the Error & Solution Keyword...
This post explains how you can use the split method in C# to count a string’s occurrences with-in a string....
If you are using Reflection and you wish you get property value using Reflection (string in this example) using C#,...
C# Error CS1952 – An expression tree lambda may not contain a method with variable arguments Reason for the Error...
C# Compiler Error CS0127 – Since ‘function’ returns void, a return keyword must not be followed by an object expression...
C# Error CS1043 – { or ; expected Reason for the Error & Solution { or ; expected A property...
When you want to use the Sort method of the List<T> (without parameters) , you should be implementing the IComparable<T>...
C# Compiler Error CS0270 – Array size cannot be specified in a variable declaration (try initializing with a ‘new’ expression)...
Below is a sample code snippet demonstrating how to retreive the max row with the group by in Lambda Expression...
C# Error CS1010 – Newline in constant Reason for the Error & Solution Newline in constant A was not properly...
There are times when you get the below error when building a C# application. C# Error – Literal of type...
Assume that you have a string that contains the URL and you want to get the parameters from it in...
C# Error CS0721 – ‘{0}’: static types cannot be used as parameters Reason for the Error & Solution ‘type’: static...
C# Error CS1663 – Fixed size buffer type must be one of the following: bool, byte, short, int, long, char,...
C# Error CS0695 – ‘{0}’ cannot implement both ‘{1}’ and ‘{2}’ because they may unify for some type parameter substitutions...
C# Error CS0744 – Expected contextual keyword ‘equals’ Reason for the Error & Solution Expected contextual keyword ‘equals’ The pattern...
C# Error CS1605 – Cannot use ‘{0}’ as a ref or out value because it is read-only Reason for the...
C# Compiler Error CS0433 – The type TypeName1 exists in both TypeName2 and TypeName3 Reason for the Error You’ll get...
C# Error CS0623 – Array initializers can only be used in a variable or field initializer. Try using a new...