Category: C#

Anonymous Type Differs in C# and VB.NET

Have you Observed anonymous types closely in c# as well as VB.NET ? Check the below sample sourcecode In VB.NET  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load         Dim PersonData As …

BigInteger in C# 4.0

When talking to one of my friend today , he mentioned about the BigInteger data type in Java . I was wondering what this datatype equivalent be in C# and ended up to see this …

String vs string in c#

How do you create a string variable in c# ? String ? string ? Confused with the above text . Well its just that we use either the keyword string or we use String . …

3 uses of the @ Symbol in c#

1. You can use one of the reserved words of c# with the @ symbol Eg : string @int = "senthil kumar"; or something like this string @class ="MCA"; Although you can use this , …

default keyword in c#

The “Default” keyword in c# can be used in the following scenarios . The main use of default comes in to picture when used in the generic code. 1. To return Type’s Default Value The …

Why doesn’t this cause an Exception ?

I was trying to run the below code snippet in Visual Studio 2010 . int Number1 = 320000; int Number2 = 320000; int Number3 = Number1  * Number2 ; MessageBox.Show(Number3.ToString()); The code resulted in the …