Category: C#
C# Compiler Error – CS8900 module initializer cannot be attributed
In this blog post, you’ll learn more about the C# Compiler Error – CS8900 and the related message description C# Compiler Error Code CS8900 C# Compiler Description for the Code :CS8900 Module initializer cannot be attributed with ‘UnmanagedCallersOnly’.
Can you run a Windows 10 Universal Apps on Windows 8.1 ?
This is one of the frequently asked question by most of the developers who are new to Windows 10 App development. Can you run a Windows 10 Universal Apps on Windows 8.1 ? In simple words , NO. The other way around i.e building Windows Phone 8.1 and Windows 8.1 Universal App will ensure that your app will run fine on both Windows 8.1 and…
C# Compiler Error – CS0181 attribute constructor parameter ‘{0}’ ha
In this blog post, you’ll learn more about the C# Compiler Error – CS0181 and the related message description C# Compiler Error Code CS0181 C# Compiler Description for the Code :CS0181 Attribute constructor parameter ‘{0}’ has type ‘{1}’, which is not a valid attribute parameter type
C# Compiler Error – CS1913 member ‘{0}’ cannot be initialized. it i
In this blog post, you’ll learn more about the C# Compiler Error – CS1913 and the related message description C# Compiler Error Code CS1913 C# Compiler Description for the Code :CS1913 Member ‘{0}’ cannot be initialized. It is not a field or property.
C# Compiler Error – CS8096 debug entry point must be a definition o
In this blog post, you’ll learn more about the C# Compiler Error – CS8096 and the related message description C# Compiler Error Code CS8096 C# Compiler Description for the Code :CS8096 Debug entry point must be a definition of a method declared in the current compilation.
How to Create ByteArray from a Stream in C#?
Below is a sample code snippet that demonstrates an easy way to create a ByteArray from the Stream that contains data in C#. How to Create ByteArray from a Stream in C#?
C# Compiler Warning – CS8907 parameter ‘{0}’ is unread. did you forge
In this blog post, you’ll learn more about the C# Compiler Warning – CS8907 and the related message description C# Compiler Warning Code CS8907 C# Compiler Description for the Code :CS8907 Parameter ‘{0}’ is unread. Did you forget to use it to initialize the property with that name?
C# Compiler Error – CS1657 cannot use ‘{0}’ as a ref or out value b
In this blog post, you’ll learn more about the C# Compiler Error – CS1657 and the related message description C# Compiler Error Code CS1657 C# Compiler Description for the Code :CS1657 Cannot use ‘{0}’ as a ref or out value because it is a ‘{1}’
C# Compiler Error – CS0610 field or property cannot be of type ‘{0}
In this blog post, you’ll learn more about the C# Compiler Error – CS0610 and the related message description C# Compiler Error Code CS0610 C# Compiler Description for the Code :CS0610 Field or property cannot be of type ‘{0}’
Different Assignment Operators available in C#
Below are some of the different Assignment Operators that are available in C# += -= *= /= %= |= &= ^=
C# Compiler Error – CS1613 the managed coclass wrapper class ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS1613 and the related message description C# Compiler Error Code CS1613 C# Compiler Description for the Code :CS1613 The managed coclass wrapper class ‘{0}’ for interface ‘{1}’ cannot be found (are you missing an assembly reference?)
How to Merge Dictionary in C# ?
There are times when you want to merge 2 dictionary collections to one . Below is a code sample that shows how to do it. How to Merge Dictionary in C# ?
How to Add range of elements to ArrayList in C# ?
You can use the AddRange method of the ArrayList object to add the range of elements (string array) to ArrayList in C#. How to Add range of elements to ArrayList in C# ? Here’s the code that demonstrates how to do it.
C# Compiler Warning – CS3013 added modules must be marked with the cl
In this blog post, you’ll learn more about the C# Compiler Warning – CS3013 and the related message description C# Compiler Warning Code CS3013 C# Compiler Description for the Code :CS3013 Added modules must be marked with the CLSCompliant attribute to match the assembly
C# Compiler Error – CS1552 array type specifier, [], must appear be
In this blog post, you’ll learn more about the C# Compiler Error – CS1552 and the related message description C# Compiler Error Code CS1552 C# Compiler Description for the Code :CS1552 Array type specifier, [], must appear before parameter name
C# Compiler Error – CS8517 the name ‘{0}’ does not match the corres
In this blog post, you’ll learn more about the C# Compiler Error – CS8517 and the related message description C# Compiler Error Code CS8517 C# Compiler Description for the Code :CS8517 The name ‘{0}’ does not match the corresponding ‘Deconstruct’ parameter ‘{1}’.
How to find the reverse of a number using C# ?
Below is a sample code snippet that demonstrates how to find the reverse of a number using C# . How to find the reverse of a number using C# ?
C# Compiler Warning – CS8897 ‘{0}’: static types cannot be used as pa
In this blog post, you’ll learn more about the C# Compiler Warning – CS8897 and the related message description C# Compiler Warning Code CS8897 C# Compiler Description for the Code :CS8897 ‘{0}’: static types cannot be used as parameters
C# Compiler Warning – CS3002 return type of ‘{0}’ is not cls-complian
In this blog post, you’ll learn more about the C# Compiler Warning – CS3002 and the related message description C# Compiler Warning Code CS3002 C# Compiler Description for the Code :CS3002 Return type of ‘{0}’ is not CLS-compliant
How to Compare two arrays in C# ?
Two arrays can be compared in C# using the Enumerable.SequenceEqual method . The Enumerable.SequenceEqual method in C# returns a boolean value indicating if both the arrays are equal or not. How to Compare two arrays in C# ? Below is an example of comparison of two arrays in C# using the Enumerable.SequenceEqual method.