Category: C#
How to Allow Null Values for Integer in C# ?
In order to allow null values to an integer or for any value types , we need to make the data type as Nullable<T> where T refers to type. How to Allow Null Values for Integer in C# ? There are 2 ways you can set null value to value types in C# .
C# Compiler Error – CS0236 a field initializer cannot reference the
In this blog post, you’ll learn more about the C# Compiler Error – CS0236 and the related message description C# Compiler Error Code CS0236 C# Compiler Description for the Code :CS0236 A field initializer cannot reference the non-static field, method, or property ‘{0}’
C# Compiler Warning – CS8018 within cref attributes, nested types of
In this blog post, you’ll learn more about the C# Compiler Warning – CS8018 and the related message description C# Compiler Warning Code CS8018 C# Compiler Description for the Code :CS8018 Within cref attributes, nested types of generic types should be qualified.
C# Compiler Warning – CS0435 the namespace ‘{1}’ in ‘{0}’ conflicts w
In this blog post, you’ll learn more about the C# Compiler Warning – CS0435 and the related message description C# Compiler Warning Code CS0435 C# Compiler Description for the Code :CS0435 The namespace ‘{1}’ in ‘{0}’ conflicts with the imported type ‘{3}’ in ‘{2}’. Using the namespace defined in ‘{0}’.
C# Compiler Error – CS0578 the conditional attribute is not valid o
In this blog post, you’ll learn more about the C# Compiler Error – CS0578 and the related message description C# Compiler Error Code CS0578 C# Compiler Description for the Code :CS0578 The Conditional attribute is not valid on ‘{0}’ because its return type is not void
C# Compiler Error – CS8156 an expression cannot be used in this con
In this blog post, you’ll learn more about the C# Compiler Error – CS8156 and the related message description C# Compiler Error Code CS8156 C# Compiler Description for the Code :CS8156 An expression cannot be used in this context because it may not be passed or returned by reference
C# Compiler Warning – CS8618 non-nullable {0} ‘{1}’ must contain a no
In this blog post, you’ll learn more about the C# Compiler Warning – CS8618 and the related message description C# Compiler Warning Code CS8618 C# Compiler Description for the Code :CS8618 Non-nullable {0} ‘{1}’ must contain a non-null value when exiting constructor. Consider declaring the {0} as nullable.
C# Compiler Error – CS0269 use of unassigned out parameter ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS0269 and the related message description C# Compiler Error Code CS0269 C# Compiler Description for the Code :CS0269 Use of unassigned out parameter ‘{0}’
C# Compiler Error – CS0564 the first operand of an overloaded shift
In this blog post, you’ll learn more about the C# Compiler Error – CS0564 and the related message description C# Compiler Error Code CS0564 C# Compiler Description for the Code :CS0564 The first operand of an overloaded shift operator must have the same type as the containing type, and the type of the second operand must be int
C# Compiler Error – CS8637 expected ‘enable’, ‘disable’, or ‘restor
In this blog post, you’ll learn more about the C# Compiler Error – CS8637 and the related message description C# Compiler Error Code CS8637 C# Compiler Description for the Code :CS8637 Expected ‘enable’, ‘disable’, or ‘restore’
C# Compiler Error – CS8112 local function ‘{0}’ must declare a body
In this blog post, you’ll learn more about the C# Compiler Error – CS8112 and the related message description C# Compiler Error Code CS8112 C# Compiler Description for the Code :CS8112 Local function ‘{0}’ must declare a body because it is not marked ‘static extern’.
C# Compiler Error – CS1991 ‘{0}’ cannot implement ‘{1}’ because ‘{2
In this blog post, you’ll learn more about the C# Compiler Error – CS1991 and the related message description C# Compiler Error Code CS1991 C# Compiler Description for the Code :CS1991 ‘{0}’ cannot implement ‘{1}’ because ‘{2}’ is a Windows Runtime event and ‘{3}’ is a regular .NET event.