Skip to main content

Posts

Showing posts with the label C#

Download Visual C# 2010 Code Samples

You can now download Visual C# 2010 code samples from the MSDN website. Download Link : http://code.msdn.microsoft.com/cs2010samples/Release/ProjectReleases.aspx?ReleaseId=4175 Also don’t forget to check the document available on the above link which describes the new features in C# 4.0. Happy Learning !!!

List of Default Values returned by Default Constructor in C# for Value Types

Please find the list of default values returned by Default Constructor for Value Types. Value Type Default Value bool FALSE byte 0 char '\0' decimal 0.0M double 0.0D enum The value produced by the expression (E)0, where E is the enum identifier. float 0.0F int 0 long 0L sbyte 0 short 0 struct The value produced by setting all value-type fields to their default values and all reference-type fields to null. uint 0 ulong 0 ushort 0 (Source : http://msdn.microsoft.com/en-us/library/83fhsxwc.aspx ) For more information please visit : http://msdn.microsoft.com/en-us/library/83fhsxwc.aspx Happy Learning !!!