Monthly Archives: June 2023

Essential Types in .NET Part-2

Nullable Value Types Nullable<T> -It can have a value or it can be null The Problem with Nulls What is new? -NullReferenceException is a bug. -Provide syntax to identify when we expect a null -Inconsistency with value types -Make the default expectations of ref types not null -Reduce likelihood of NullReferenceExceptions Enable by project for… Read More »

Essential Types in .NET

Primitive Types Boolean : true or false Int16, Int32, Int64 : signed integer values Byte :0 to 255 Uint16, UInt32, Uint64 : unsigned integer values SByte : signed byte values from -128 t0 127 Singe: 32-bit single-precision floating-point number Char : 16-bit Unicode character Double: 64-bit double-precision floating-point number Value Types Reference Types -Structures -Classes… Read More »