HI WELCOME TO SIRIS

Part 3 - C# Tutorial - Built-in types

Leave a Comment

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#
http://msdn.microsoft.com/en-us/library/h21280bw.aspx

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 Readabl

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.