Tuesday, December 19, 2023

Primitive types in C#

Following are primitive data types used in C#

Purpose C# Data Type .Net Data Type
Text char System.Char
string System.String
Fixed Point Signed Numbers sbyte System.SByte
short System.Int16
int System.Int32
long System.Int64
Fixed Point Unsigned Numbers byte System.Byte
ushort System.UInt16
uint System.UInt32
ulong System.UInt64
Floating Point Numbers float System.Single
double System.Double
decimal System.Decimal
Boolean bool System.Boolean

No comments:

Post a Comment

Object Oriented Programming- 2- Inheritance

Inheritance is one of the fundamental attributes of object-oriented programming. It allows you to define a child class...