|
Post by Admin on May 28, 2014 8:58:55 GMT -5
Built-in types in C# 1. Boolean type – Only true or false 2. Integral Types - sbyte, byte, short, ushort, int, uint, long, ulong, char 3. Floating Types – float and double 4. Decimal Types 5. String Type Escape Sequences in C# msdn.microsoft.com/en-us/library/h21280bw.aspxVerbatim Literal is a string with an @ symbol prefix, as in @“Hello". Verbatim literals make escape sequences translate as normal printable characters to enhance readability. Practical Example: Without Verbatim Literal : “C:\\Pragim\\DotNet\\Training\\Csharp” – Less Readable With Verbatim Literal : @“C:\Pragim\DotNet\Training\Csharp” – Better Readable Sample Code: using System; class Program { static void Main() { int i = 0; Console.WriteLine("Min = {0}", int.MinValue); Console.WriteLine("Max = {0}", int.MaxValue); } }
|
|