Category: C#

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# 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.

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# ?

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#?