Tag: visual studio 2015
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…
Building a ASP.NET Web API in Visual Studio 2015
This blog post will explain on how to create a Simple ASP.NET Web API using Microsoft Visual Studio 2015 and return an expose a List (Eg: List<Students>) over HTTP. This includes creating action methods and using them for get all students and get a particular student by id. How to create a Web API in Visual Studio 2015 and return a List over HTTP? Follow…
Auto Property Initializers in C# 6.0
The .NET Framework 3.0 introduced the auto-implemented properties which was quite useful but it had one drawback . This did not have an option to specify the default value to the property . Here’s an example of the auto-implemented property in C#. If you had to specify the default value to property , you must either initialize the value in the constructor or by specifying…
Lambdas Expression for Getter-Only Auto-Properties in C# 6.0
C# 6.0 lets the developers use the lambda expression to implement the getter value of the read-only property . Whenever a lambda expression is found , the C# compiler identifies it as the property with only get method rather than a field. Lambdas Expression for Getter-Only Auto-Properties in C# 6.0 Below is a sample code snippet demonstrating the use of Lambdas Expression for Getter-Only Auto-Properties…
Json.NET & C# – Installing Json.NET for C# projects in 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 and is considered to be one of the most popular .NET library. The first version of Json.NET was released sometime in June 2006 and now this library is used is most of the popular .NET open source projects…
How to change Language Version from C# 6.0 in Visual Studio 2015 ?
There are times when you are developing .NET Project in Visual Studio 2015 with C# 6.0 enabled and you might also have members in your team using Visual Studio 2013 and still want to build and run the project. How to change Language Version from C# 6.0 in Visual Studio 2015 ? You can change the C# language version from the project properties. In the…
Json.NET & C# – How to Seralize an Object ?
One of the ways to serialize an object to JSON string in C# in the Json.NET is using the SerializeObject method defined in the JsonConvert method. The JsonConvert class provides an easy to use wrapper class and method over the JsonSerializer. How to Seralize an Object in C# using Json.NET ? Below is the sample code snippet demonstrating the usage of JsonConvert.SerializeObject method in C#…
Auto-Property Initializers for Read-Only Properties in C# 6.0
In the earlier version of C# , if you want a read-only property , you would end up having a backing field which is initialized in the constructor. In C# 6.0 , the auto-implemented properties can be used to implement read-only property using the auto-property initializer as shown below. Auto-Property Initializers for Read-Only Properties in C# 6.0
Json.NET & Oxygene – How to Serialize an Object ?
One of the ways to serialize an object to JSON string in Oxygene # in the Json.NET is using the SerializeObject method defined in the JsonConvert method. The JsonConvert class provides an easy to use wrapper class and method over the JsonSerializer. How to Serialize an Object in Oxygene using Json.NET ? Below is the sample code snippet demonstrating the usage of JsonConvert.SerializeObject method in…
Json.NET & Oxygene – How to Deserialize an Object ?
One of the ways to Deserialize an object to JSON string in Oxygene in the Json.NET is using the DeSerializeObject method defined in the JsonConvert method. How to Deserialize an Object in Oxygene using Json.NET ? Below is a sample code snippet demonstrating how you can deserialize an object from Json string to Oxygene object using Json.NET. It takes the json string that contains the…
How to Disable Browser Link in Visual Studio 2015 ?
Browser Link is one of the cool features in Visual Studio for the ASP.NET Developers. Sometimes , the web developers might want to disable this feature for various reasons. How to Disable Browser Link in Visual Studio 2015 ? There are 2 ways in which you can disable the Browser link in Visual Studio 2015. 1. Using Web.config file Just set the property vs:EnableBrowserLink value…
XAML Designer options in Visual Studio
Visual Studio 2015 has an interesting feature in the IDE that is related to the XAML Designer . As a Developer , you can perform the following options in the Visual Studio 2015 IDE specially on the XAML designer.1. Disable the XAML Designer.2. Set the Default document view for the XAML designer.3. Set the Split Orientation for the designer.4. Set the shortcut key for the…
Json.NET & VB.NET – How to Deserialize an Object ?
One of the ways to Deserialize an object to JSON string in VB.NET in the Json.NET is using the DeSerializeObject method defined in the JsonConvert method. How to Deserialize an Object in VB.NET using Json.NET ? Below is a sample code snippet demonstrating how you can deserialize an object from Json string to VB.NET object using Json.NET. It takes the json string that contains the…
How to disable NPM package restore in Visual Studio 2015?
When you open a project in Microsoft Visual Studio 2015 Update 1 that contains the package.json , you will notice that the npm install process is started by default. There are times when you want to run npm install manually from the command line. How to disable NPM package restore in Visual Studio 2015? Follow the below steps to disable NPM package restore in Microsoft…
Json.NET & Oxygene – Installing Json.NET for Remobjects Oxygene projects in Visual Studio 2015
Are you a developer using RemObjects Oxygene.NET and want to use Json.NET in your project . Check this series of articles to learn how to integrate Json.NET in your Oxygene project. 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 and is considered to be one of…
Json.NET & C# – How to Deserialize an Object ?
One of the ways to Deserialize an object to JSON string in C# in the Json.NET is using the DeSerializeObject method defined in the JsonConvert method. How to Deserialize an Object in C# using Json.NET ? Below is a sample code snippet demonstrating how you can deserialize an object from Json string to C# object using Json.NET. It takes the json string that contains the…
Json.NET & VB.NET – How to Serialize an Object ?
One of the ways to serialize an object to JSON string in VB.NET in the Json.NET is using the SerializeObject method defined in the JsonConvert method. The JsonConvert class provides an easy to use wrapper class and method over the JsonSerializer. How to Serialize an Object in VB.NET using Json.NET ? Below is the sample code snippet demonstrating the usage of JsonConvert.SerializeObject method in C#…