Category: C#
C# Compiler Error – CS0225 the params parameter must be a single di
In this blog post, you’ll learn more about the C# Compiler Error – CS0225 and the related message description C# Compiler Error Code CS0225 C# Compiler Description for the Code :CS0225 The params parameter must be a single dimensional array
C# Compiler Error – CS1515 ‘in’ expected
In this blog post, you’ll learn more about the C# Compiler Error – CS1515 and the related message description C# Compiler Error Code CS1515 C# Compiler Description for the Code :CS1515 ‘in’ expected
How to Enable JavaScript in Windows Phone 8 WebBrowser Control?
If you are using the WebBrowser control in your Windows Phone project, there are times when you want to enable JavaScript in it to achieve various things. How to Enable JavaScript in Windows Phone 8 WebBrowser Control? This is pretty simple. The WebBrowser Control in Windows Phone SDK has a property IsScriptEnabled, Just set this property to true. <phone:WebBrowser x:Name=”BrowserControl1″ IsScriptEnabled=”True” /> You are done….
C# Compiler Error – CS0411 the type arguments for method ‘{0}’ cann
In this blog post, you’ll learn more about the C# Compiler Error – CS0411 and the related message description C# Compiler Error Code CS0411 C# Compiler Description for the Code :CS0411 The type arguments for method ‘{0}’ cannot be inferred from the usage. Try specifying the type arguments explicitly.
C# Compiler Error – CS1600 compilation cancelled by user
In this blog post, you’ll learn more about the C# Compiler Error – CS1600 and the related message description C# Compiler Error Code CS1600 C# Compiler Description for the Code :CS1600 Compilation cancelled by user
How to convert an Integer to Hexadecimal string in C# ?
You can easily format an integer to an Hexadecimal string in C# using the ToString() method. How to convert an Integer to Hexadecimal string in C# ? Below is a sample sourcecode that demonstrates How to convert an Integer to Hexadecimal string in C# ?
How to Convert Hexadecimal value to Decimal number in C# ?
Below is a sample sourecode demonstrating the conversion of the hexadecimal value to decimal number in c#. How to Convert Hexadecimal value to Decimal number in C# ?
How to generate a random number in C# and .NET?
If you want to generate a random number in your .NET application using C#, you can use the random class to generate one. How to generate a random number in C# and .NET? Below is a sample code snippet on how to generate random numbers in C#. Try to keep the instance of the Random class and reuse it Incase you are generating more than…
How to convert List<string> to string with comma delimiter in C# ?
If you need to convert a collection (for example List of string) to string separated with the Comma as delimiter , you can either use the string.join method or aggregate method as shwon below. How to convert List<string> to string with comma delimiter in C# ?
C# Compiler Error – CS8357 the specified version string contains wi
In this blog post, you’ll learn more about the C# Compiler Error – CS8357 and the related message description C# Compiler Error Code CS8357 C# Compiler Description for the Code :CS8357 The specified version string contains wildcards, which are not compatible with determinism. Either remove wildcards from the version string, or disable determinism for this compilation
C# Compiler Error – CS1721 class ‘{0}’ cannot have multiple base cl
In this blog post, you’ll learn more about the C# Compiler Error – CS1721 and the related message description C# Compiler Error Code CS1721 C# Compiler Description for the Code :CS1721 Class ‘{0}’ cannot have multiple base classes: ‘{1}’ and ‘{2}’
C# Compiler Error – CS1015 an object, string, or class type expecte
In this blog post, you’ll learn more about the C# Compiler Error – CS1015 and the related message description C# Compiler Error Code CS1015 C# Compiler Description for the Code :CS1015 An object, string, or class type expected
C# Compiler Warning – CS4014 because this call is not awaited, execut
In this blog post, you’ll learn more about the C# Compiler Warning – CS4014 and the related message description C# Compiler Warning Code CS4014 C# Compiler Description for the Code :CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the ‘await’ operator to the result of the call.
C# Compiler Error – CS1941 the type of one of the expressions in th
In this blog post, you’ll learn more about the C# Compiler Error – CS1941 and the related message description C# Compiler Error Code CS1941 C# Compiler Description for the Code :CS1941 The type of one of the expressions in the {0} clause is incorrect. Type inference failed in the call to ‘{1}’.
C# Compiler Error – CS8920 the interface ‘{3}’ cannot be used as ty
In this blog post, you’ll learn more about the C# Compiler Error – CS8920 and the related message description C# Compiler Error Code CS8920 C# Compiler Description for the Code :CS8920 The interface ‘{3}’ cannot be used as type parameter ‘{2}’ in the generic type or method ‘{0}’. The constraint interface ‘{1}’ or its base interface has static abstract members.
C# Compiler Error – CS4034 the ‘await’ operator can only be used wi
In this blog post, you’ll learn more about the C# Compiler Error – CS4034 and the related message description C# Compiler Error Code CS4034 C# Compiler Description for the Code :CS4034 The ‘await’ operator can only be used within an async {0}. Consider marking this {0} with the ‘async’ modifier.
C# Compiler Error – CS7000 unexpected use of an aliased name
In this blog post, you’ll learn more about the C# Compiler Error – CS7000 and the related message description C# Compiler Error Code CS7000 C# Compiler Description for the Code :CS7000 Unexpected use of an aliased name
C# Compiler Error – CS1764 cannot use fixed local ‘{0}’ inside an a
In this blog post, you’ll learn more about the C# Compiler Error – CS1764 and the related message description C# Compiler Error Code CS1764 C# Compiler Description for the Code :CS1764 Cannot use fixed local ‘{0}’ inside an anonymous method, lambda expression, or query expression
C# Compiler Error – CS8761 operator ‘{0}’ cannot be applied to ‘def
In this blog post, you’ll learn more about the C# Compiler Error – CS8761 and the related message description C# Compiler Error Code CS8761 C# Compiler Description for the Code :CS8761 Operator ‘{0}’ cannot be applied to ‘default’ and operand of type ‘{1}’ because it is a type parameter that is not known to be a reference type
C# Compiler Error – CS0261 partial declarations of ‘{0}’ must be al
In this blog post, you’ll learn more about the C# Compiler Error – CS0261 and the related message description C# Compiler Error Code CS0261 C# Compiler Description for the Code :CS0261 Partial declarations of ‘{0}’ must be all classes, all record classes, all structs, all record structs, or all interfaces