Category: C#
C# Compiler Error – CS2013 invalid image base number ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS2013 and the related message description C# Compiler Error Code CS2013 C# Compiler Description for the Code :CS2013 Invalid image base number ‘{0}’
C# Compiler Error – CS8755 ‘{0}’ cannot be used as a modifier on a
In this blog post, you’ll learn more about the C# Compiler Error – CS8755 and the related message description C# Compiler Error Code CS8755 C# Compiler Description for the Code :CS8755 ‘{0}’ cannot be used as a modifier on a function pointer parameter.
C# Compiler Error – CS0554 ‘{0}’: user-defined conversions to or fr
In this blog post, you’ll learn more about the C# Compiler Error – CS0554 and the related message description C# Compiler Error Code CS0554 C# Compiler Description for the Code :CS0554 ‘{0}’: user-defined conversions to or from a derived type are not allowed
Anonymous Types are read-only in C#
If you try to set a value to the anonymous type in C# , you will receive an compiler error . The properties within the anonymous types are read-only properties. Anonymous Types are read-only in C# In the above code snippet , you will receive an compiler error “Error CS0200 Property or indexer ‘<anonymous type: string FirstName, string Last>.FirstName’ cannot be assigned to — it…
How to read data from text file in C#?
Below is a sample code snippet demonstrating in simple steps on how to read data from text file in a console application in C# and display it? How to read data from text file in C#?
C# Compiler Error – CS0115 ‘{0}’: no suitable method found to overr
In this blog post, you’ll learn more about the C# Compiler Error – CS0115 and the related message description C# Compiler Error Code CS0115 C# Compiler Description for the Code :CS0115 ‘{0}’: no suitable method found to override
Creating a Button in UWP app by specifying the namespace as one of the attributes of button
You can add a button in your Universal Windows Platform (UWP) app by simply adding the Button tag in the Xaml page. You will notice that the Namespace “http://schemas.microsoft.com/winfx/2006/xaml/presentation” is already referred in the Page element. You can add a button in the UWP app page by specifying the namespace as one of the attributes of button instead of specifying it at the page level….
C# Compiler Error – CS8183 cannot infer the type of implicitly-type
In this blog post, you’ll learn more about the C# Compiler Error – CS8183 and the related message description C# Compiler Error Code CS8183 C# Compiler Description for the Code :CS8183 Cannot infer the type of implicitly-typed discard.
C# Compiler Warning – CS0652 comparison to integral constant is usele
In this blog post, you’ll learn more about the C# Compiler Warning – CS0652 and the related message description C# Compiler Warning Code CS0652 C# Compiler Description for the Code :CS0652 Comparison to integral constant is useless; the constant is outside the range of type ‘{0}’
C# Compiler Error – CS1103 the first parameter of an extension meth
In this blog post, you’ll learn more about the C# Compiler Error – CS1103 and the related message description C# Compiler Error Code CS1103 C# Compiler Description for the Code :CS1103 The first parameter of an extension method cannot be of type ‘{0}’
Convert All Strings in a List to Upper Case using LINQ in C#
Below is a sample code snippet which demonstrates on how to convert all strings in a list to upper case using LINQ in C#.
?
C# Compiler Error – CS1629 unsafe code may not appear in iterators
In this blog post, you’ll learn more about the C# Compiler Error – CS1629 and the related message description C# Compiler Error Code CS1629 C# Compiler Description for the Code :CS1629 Unsafe code may not appear in iterators