.NET and Visual Studio

1234567
Test APIs using Endpoints Explorer and .http files
ASP.NET Core web developers often need to test the controller based APIs and minimal APIs they add in their projects. Typically developers use tools such as Postman or Swagger for this purpose. Visual Studio 2022 now has tools that can come handy for quickly testing your APIs. This article explains these tools with an example.
Posted On : 18 Sep 2023
7 Features of C# 7.0 Worth Knowing
As you are aware of C# 7.0 and Visual Studio 2017 have been released. In this article I quickly take you through seven new features of the language that are worth knowing. I assume that you are familiar with C# 6.0 and hence I am not going into too much technical details of these features here. My aim is to quickly let you know of a few interesting features that can make your C# code more efficient and clear. Let's get going.
Posted On : 24 Mar 2017
Convert JSON and XML markup into C# classes using Visual Studio
Visual Studio provides a plethora of features that make you more productive. One such feature is converting XML or JSON markup into C# classes. This article discusses this feature with a few examples. XML and JSON are the two commonly used data formats for serializing data over the wire. Many a times you need to map XML or JSON markup to C# classes. No doubt, you can create these C# classes manually but Visual Studio can provided a good starting point by automating the process.
Posted On : 29 Nov 2016
Use Lazy Initialization to Delay Object Instantiation
It is a common practice to declare object variables as the class members and initialize them in the constructor of the class. At times, however, you need to delay the object instantiation until its first use. One way to achieve such an deferred object instantiation is to write custom code that implements Lazy Load pattern. An easy alternative is to use .NET framework's inbuilt lazy initialization feature. To that end this article explains the later approach.
Posted On : 22 Feb 2016
Six New Features of C# 6 You Should Know
As you are probably aware C# 6 is now available and there are some nice new additions to the language. Here is a quick overview of six new features of C# that are worth noting.
Posted On : 10 Aug 2015
Writing C# Code Using SOLID Principles
Most of the modern programming languages including C# support objected oriented programming. Features such as encapsulation, inheritance, overloading and polymorphism are code level features. Using these features is just one part of the story. Equally important is to apply some object oriented design principles while writing your C# code. SOLID principles is a set of five such principles--namely Single Responsibility Principle, Open/Closed Principle, Liskov Substitution Principle, Interface Segregation Principle and Dependency Inversion Principle. Applying these time proven principles make your code structured, neat and easy to maintain. This article discusses SOLID principles and also illustrates how they can be applied to your C# code.
Posted On : 17 May 2014
Overview of Design Patterns for Beginners
Modern software development needs to address complex business requirements. It also needs to take into account factors such as future extensibility and maintainability. A good design of a software system is vital to accomplish these goals. Design patterns play an important role in such systems. While learning a programming language beginners often focus on language syntax and usage techniques. However, it is also important to understand the basics of good software design. To that end this article gives a quick understanding of design patterns. It discusses what design patterns are, their benefits and classification.
Posted On : 25 Apr 2014
Working with Debug Windows in Visual Studio
Debugging is an important skill that every developer needs to acquire. .NET developers have a powerful debugger of Visual Studio at their disposal. Visual Studio offers many windows that can be used during the debugging session. Knowing these windows is essential for efficient debugging. To that end this article discusses some of the most commonly used debug windows of Visual Studio.
Posted On : 27 Feb 2014
Understanding .NET Attributes
.NET assemblies are said to be self-describing. That means the information about an assembly is stored in the assembly itself. This information is called Metadata. Moreover, .NET allows you to put additional information in the metadata through Attributes. Attributes are used in many places within the .NET framework. Some examples of attributes are [WebMethod], [ServiceContract], and several data annotation attributes such as [Required] and [StringLength]. This article discusses what attributes are, how to use inbuilt attributes and how to create custom attributes.
Posted On : 20 Feb 2014
ASP.NET MVC Training in March 2014 - Thane!
We are pleased to announce our March 2014 schedule of ASP.NET MVC course. Learn VS2013, MVC5, Web API 2 and more. Intensive courses for software developers, small batches, convenient weekend timings and real world examples. Registration for these batches has already started. You may read more details here.
Posted On : 14 Jan 2014
1234567