-
Parallel and Asynchronous Programming
Introduction If you are a developer and ever working with any of the Desktop or Web Application in your life, you should come up with two terms Parallel and Asynchronous programming. Although the are closely used with each other and there are a lot of underlying similarities in implementation instead it’s worth to know the basic differences…
-
Performance Tuning of .NET Application
This article is all about to improve the performance of the .NET application using the proper metrics and ways. Many cases developers optimize the performance on guessing without finding the bottlenecks of the application. Some cases developers tends to use the same IList<T> collection on every case, instead .NET support a variety of collection family for some…
-
Class vs Object
A class is the definition of an object, and an object is an instance of a class. We can look at the class as a template of the object: it describes all the properties, methods, states, and behaviors that the implementing object will have. On the other hand, an object is an instance of a class,…
-
Difference between managed and unmanaged code
Managed Code Managed code is created by the .NET compiler. It does not depend on the architecture of the target machine because it is executed by the CLR (Common Language Runtime), and not by the operating system itself. CLR and managed code offer developers few benefits, like garbage collection, type checking, exceptions handling. Unmanaged Code Unmanaged…
-
Basic Console Application Using Entity Framework 6
Entity Framework(EF) enables .NET developers to work with relational data using domain-specific objects. Prior to EF7 update, Entity Framework supports to create a model by writing code or using boxes and lines in the EF Designer. Both of these approaches can be used to target an existing database or create a new database. In this…
-
Get OS Version in C#
Currently, several versions of Windows OS are available in the market from Windows XP to latest Windows 8. For one my application, I was looking for a way to determine the OS version of the installed Windows at my workstation using C#. I have googled for the answer but no answer give me a clear…
-
Get property value from C# object dynamically
In Generic Class, it is quite common to get the value for a specific property dynamically. C# refection provides ways to get the Property value dynamically. If the IDynamicMetaObjectProvider can provide the dynamic member names, you can get them. See GetMemberNames implementation in the apache licensed ImpromptuInterface (which can be found in nuget), it works…
-
Compare two objects by value in C#
In C# compare method is not straight forward. To compare two objects by value we can use the following code snippet. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more…
-
Generic Type Conversion Mechanism in C#
Microsoft .Net already has a bunch of great string conversion routines you can use! A TypeConverter can do most of the heavy lifting for you. Then you don’t have to worry providing your own parsing implementations for built-in types. Note that there are locale-aware versions of the APIs on TypeConverter that could be used if…
-
Whats New in ASP.NET and Web Tools for Visual Studio 2013
Microsoft recently released the new version of Visual Studio 2013 and web tools. Here are the summary of the new features for the web developers in Visual Studio 2013. New release focuses on One ASP.NET, which steps toward to unifying the ASP.NET technologies so core features can and web tools work the same across the…