Category: C#
C# Compiler Error – CS0623 array initializers can only be used in a
In this blog post, you’ll learn more about the C# Compiler Error – CS0623 and the related message description C# Compiler Error Code CS0623 C# Compiler Description for the Code :CS0623 Array initializers can only be used in a variable or field initializer. Try using a new expression instead.
C# Compiler Error – CS1671 a namespace declaration cannot have modi
In this blog post, you’ll learn more about the C# Compiler Error – CS1671 and the related message description C# Compiler Error Code CS1671 C# Compiler Description for the Code :CS1671 A namespace declaration cannot have modifiers or attributes
C# Compiler Error – CS2011 error opening response file ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS2011 and the related message description C# Compiler Error Code CS2011 C# Compiler Description for the Code :CS2011 Error opening response file ‘{0}’
C# Compiler Error – CS1528 expected ; or = (cannot specify construc
In this blog post, you’ll learn more about the C# Compiler Error – CS1528 and the related message description C# Compiler Error Code CS1528 C# Compiler Description for the Code :CS1528 Expected ; or = (cannot specify constructor arguments in declaration)
C# Compiler Warning – CS0414 the field ‘{0}’ is assigned but its valu
In this blog post, you’ll learn more about the C# Compiler Warning – CS0414 and the related message description C# Compiler Warning Code CS0414 C# Compiler Description for the Code :CS0414 The field ‘{0}’ is assigned but its value is never used
Json.NET & Oxygene – How to Serialize a Collection?
Do you want to serialize an collection in your Remobjects Oxygene.NET application?. Json.NET supports this functionality with ease. The Collection can be an Array , Dictionary or List. You need to simply pass collection to the JsonConvert.SerializeObject static method which would serialize the collection and return you the Json string. How to Serialize a Collection in Oxygene.NET using Json.NET library ? For example , assume…
How to get the Computer Name in C# ?
When working on a Winforms or Console application using C# , sometimes you might need to get the computer name where the application is running. How to get the Computer Name in C# ? To retrieve the computer name , one can use the System.Environment.MachineName property as shown below.
C# Compiler Error – CS0439 an extern alias declaration must precede
In this blog post, you’ll learn more about the C# Compiler Error – CS0439 and the related message description C# Compiler Error Code CS0439 C# Compiler Description for the Code :CS0439 An extern alias declaration must precede all other elements defined in the namespace
C# Compiler Error – CS1770 a value of type ‘{0}’ cannot be used as
In this blog post, you’ll learn more about the C# Compiler Error – CS1770 and the related message description C# Compiler Error Code CS1770 C# Compiler Description for the Code :CS1770 A value of type ‘{0}’ cannot be used as default parameter for nullable parameter ‘{1}’ because ‘{0}’ is not a simple type
C# Compiler Warning – CS8610 nullability of reference types in type o
In this blog post, you’ll learn more about the C# Compiler Warning – CS8610 and the related message description C# Compiler Warning Code CS8610 C# Compiler Description for the Code :CS8610 Nullability of reference types in type of parameter ‘{0}’ doesn’t match overridden member.
C# Compiler Error – CS1949 the contextual keyword ‘var’ cannot be u
In this blog post, you’ll learn more about the C# Compiler Error – CS1949 and the related message description C# Compiler Error Code CS1949 C# Compiler Description for the Code :CS1949 The contextual keyword ‘var’ cannot be used in a range variable declaration
C# Compiler Error – CS8309 cannot compile net modules when using /r
In this blog post, you’ll learn more about the C# Compiler Error – CS8309 and the related message description C# Compiler Error Code CS8309 C# Compiler Description for the Code :CS8309 Cannot compile net modules when using /refout or /refonly.