Part 6 C# tutorial - Nullable Type | Null Coalescing Operator??

preview_player
Показать описание
OVERVIEW: In this video I have explained Nullable type in detail. Apart from that you will be able to cover below topics

Why Nullable type is required?
Assigning a Null value to a Non Nullable data types
What is Null Coalescing operator?

CONTACT US AT:

SOCIAL :
Follow us on Twitter : @technotipsMVC

VISIT OUR BLOG:

INTRODUCTION :
There are two kinds of data types in C#
Value Type:
A data type which holds a data value within its own memory space. It means the variables of these data types directly contain values
Reference Type:
A reference type doesn't store its value directly. Instead it stores the address where the value is being stored
Below types come under Value type and Reference Type
VALUE TYPES:
A. Simple types
- Signed integral: sbyte, short, int, long
- Unsigned integral: byte, ushort, uint, ulong
- Unicode characters: char
- IEEE binary floating-point: float, double
- High-precision decimal floating-point: decimal
- Boolean: bool
B. Enum types
- User-defined types of the form enum E {...}
C. Nullable value types
- Extensions of all other value types with null value
D. Tuple value types
- User-defined types of the form (T1 T2 ...)
E. Struct types
- User-defined types of the form struct S {...}

REFERENCE TYPES:
A. Class
- Ultimate base class of all other types: object
- Unicode strings: string
- User-defined types of the form class C {...}
B. Interface
- User-defined types of the form interface I {...}
D. Array
- Single- and multi-dimensional for example int[]
E. Delegates
- User-defined types of the form delegate int D(...)

FEATURED VIDEO:

TAGS

c# tutorial,
data types in c#,
Nullable type in C#
Null value type in C#,
why to use Nullable type,
types in c#,
value type vs reference type,
csharp tutorial for beginners,
technotips c#,
technotips mvc,
technotips ashish,
c# with mvc,
c# .net tutorial

#CSharptutorial #technotips #aapkanigam #mvctutorial #csharpdotnet
Рекомендации по теме
Комментарии
Автор

Hi Ashish . Great video n easy to follow . Thanks for that 🙏 I have an question on same .
Where exactly in memory does nullable type stored ?? Say for example : int? I=null; How it works behind hood . Could you pls help me on this . Thanks in advance .

kiranshetty