Thursday, November 26, 2015

Part 3&4 - Built-in types & String types

In this session, we will learn
1.Built-in types in C#
i. Boolean type – Only true or false 
ii. Integral Types - sbyte, byte, short, ushort, int, uint, long, ulong,char
iii. Floating Types – float and double
iv. Decimal Types
v. String Type 
2.Escape Sequences in C#
         http://msdn.microsoft.com/en-us/library/h21280bw.aspx
 3.Verbatim Literal
                   Verbatim 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

No comments:

Post a Comment