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