Part 02- C# Tutorial - Built-in types
Suggested Videos
Part 00 - Introduction to C#
Part 01 - Reading and writing to console
In this video, we will discuss the different built-in types that are available in c#.
Part 00 - Introduction to C#
Part 01 - Reading and writing to console
In this video, we will discuss the different built-in types that are available in c#.
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
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 Readable
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 Readable
Tags:
C sharp