Category: C#
C# Compiler Error – CS8780 a variable may not be declared within a
In this blog post, you’ll learn more about the C# Compiler Error – CS8780 and the related message description C# Compiler Error Code CS8780 C# Compiler Description for the Code :CS8780 A variable may not be declared within a ‘not’ or ‘or’ pattern.
Json.NET & VB.NET – Installing Json.NET for VB.NET projects in Visual Studio 2015
This series of blog posts will cover how to integrate Json.NET library in your VB.NET projects. In the first blog post , we will explore what is Json.NET and how to install it in Microsoft Visual Studio 2015. Json.NET is one of the popular high performance and open source JSON framework for the .NET Developers. It lets the developers to serialize and deserialize .NET objects…
C# – How to Call the base constructor ?
In C#, You can call the base constructor using the base keyword as shown below. How to Call the base constructor in C# ?
C# Compiler Error – CS8150 by-value returns may only be used in met
In this blog post, you’ll learn more about the C# Compiler Error – CS8150 and the related message description C# Compiler Error Code CS8150 C# Compiler Description for the Code :CS8150 By-value returns may only be used in methods that return by value
C# Compiler Error – CS8658 auto-implemented ‘set’ accessor ‘{0}’ ca
In this blog post, you’ll learn more about the C# Compiler Error – CS8658 and the related message description C# Compiler Error Code CS8658 C# Compiler Description for the Code :CS8658 Auto-implemented ‘set’ accessor ‘{0}’ cannot be marked ‘readonly’.
C# Compiler Error – CS4008 cannot await ‘void’
In this blog post, you’ll learn more about the C# Compiler Error – CS4008 and the related message description C# Compiler Error Code CS4008 C# Compiler Description for the Code :CS4008 Cannot await ‘void’
C# Compiler Error – CS0073 an add or remove accessor must have a bo
In this blog post, you’ll learn more about the C# Compiler Error – CS0073 and the related message description C# Compiler Error Code CS0073 C# Compiler Description for the Code :CS0073 An add or remove accessor must have a body
C# Compiler Error – CS1604 cannot assign to ‘{0}’ because it is rea
In this blog post, you’ll learn more about the C# Compiler Error – CS1604 and the related message description C# Compiler Error Code CS1604 C# Compiler Description for the Code :CS1604 Cannot assign to ‘{0}’ because it is read-only
C# Compiler Error – CS0106 the modifier ‘{0}’ is not valid for this
In this blog post, you’ll learn more about the C# Compiler Error – CS0106 and the related message description C# Compiler Error Code CS0106 C# Compiler Description for the Code :CS0106 The modifier ‘{0}’ is not valid for this item
C# Compiler Error – CS0735 invalid type specified as an argument fo
In this blog post, you’ll learn more about the C# Compiler Error – CS0735 and the related message description C# Compiler Error Code CS0735 C# Compiler Description for the Code :CS0735 Invalid type specified as an argument for TypeForwardedTo attribute
C# Compiler Error – CS0617 ‘{0}’ is not a valid named attribute arg
In this blog post, you’ll learn more about the C# Compiler Error – CS0617 and the related message description C# Compiler Error Code CS0617 C# Compiler Description for the Code :CS0617 ‘{0}’ is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, or const, or read-write properties which are public and not static.
C# Compiler Error – CS8657 static member ‘{0}’ cannot be marked ‘re
In this blog post, you’ll learn more about the C# Compiler Error – CS8657 and the related message description C# Compiler Error Code CS8657 C# Compiler Description for the Code :CS8657 Static member ‘{0}’ cannot be marked ‘readonly’.
How to find if the string is a number or not in C# ?
If you want to find out if the input string is a number in C# , you can use the try parse method. How to find if the string is a number or not in C# ? Below is a function in C# that demonstrates finding if the string is a number in C#.
C# Compiler Error – CS1963 an expression tree may not contain a dyn
In this blog post, you’ll learn more about the C# Compiler Error – CS1963 and the related message description C# Compiler Error Code CS1963 C# Compiler Description for the Code :CS1963 An expression tree may not contain a dynamic operation
How to Generate Unique ID in C# ?
Do you want to generate a unique id in C# ? . You can use Guid to generate unique data or ID. Below is a sample code snippet that demonstrates how to generate unique ID in C# . How to Generate Unique ID in C# ?
C# Compiler Error – CS1743 cannot specify a default value for the ‘
In this blog post, you’ll learn more about the C# Compiler Error – CS1743 and the related message description C# Compiler Error Code CS1743 C# Compiler Description for the Code :CS1743 Cannot specify a default value for the ‘this’ parameter
C# Compiler Error – CS8343 ‘{0}’: ref structs cannot implement inte
In this blog post, you’ll learn more about the C# Compiler Error – CS8343 and the related message description C# Compiler Error Code CS8343 C# Compiler Description for the Code :CS8343 ‘{0}’: ref structs cannot implement interfaces
How to Get the Application’s path in Windows or Console Application in C#?
There are times when you want to retrieve the application’s path where the exe is running to get access to another file or accessing the configuration file etc. Below is a sample program that demonstrates how one can retrieve the Application’s path in Windows or Console Application in C#. How to Get the Application’s path in Windows or Console Application in C#?
C# Compiler Error – CS1562 outputs without source must have the /ou
In this blog post, you’ll learn more about the C# Compiler Error – CS1562 and the related message description C# Compiler Error Code CS1562 C# Compiler Description for the Code :CS1562 Outputs without source must have the /out option specified
C# Compiler Warning – CS0465 introducing a ‘finalize’ method can inte
In this blog post, you’ll learn more about the C# Compiler Warning – CS0465 and the related message description C# Compiler Warning Code CS0465 C# Compiler Description for the Code :CS0465 Introducing a ‘Finalize’ method can interfere with destructor invocation. Did you intend to declare a destructor?