Year: 2017

throw vs. throw(ex) best practice and difference- c#

Recently I was looking into someone’s code found that they are using the throw(ex) to log exception so I told that person that why you are not using only throw he said there is no difference.. Wait this is not true there is a difference. So, this post is all about throw Vs. throw(ex) best

What is the difference between User Control and Custom Control

Custom controls are compiled code(Dlls) easier to use,difficult to create and can be place in toolbox. You can drag and drop controls, Attributes of this control are visually set at design time. A custom control can be used in multiple application as shared DLLS. Any one can copy DLL of custom control in bin directory

C#.NET Coding Industry Standards.

Lots of people are creating and devleoping the application using Microsoft.NET plateform but still don’t know the right way to code it. Here is the link for .NET Coding Standards that a developer must following while developing application. http://www.irritatedvowel.com/Programming/Standards.aspx

How to set default value of a property in Class-C# 2.0

Posted by jalpesh vadgama |  March 01, 2007 |  C#.NET |  4 comments    If you wanna set properties default value at the time of Class Instance creationg here is code that. Import following name space to your class with using directives. using System.Collections.Generic; using System.Text; using System.ComponentModel; Then create a private variable field for property private string