String का मतलब System.String है जबकि string C# में System.String के लिए एक एलियास (alias) है।
उदाहरण के लिए:
string str = "Welcome!";
यह आवश्यक नहीं है, लेकिन आमतौर पर String का उपयोग तब किया जाता है जब आप क्लासेस के साथ काम करते हैं।
string str = String.Format("Welcome! {0}!", user);उदाहरण
object: System.Object string: System.String bool: System.Boolean float: System.Single double: System.Double decimal: System.Decimal byte: System.Byte sbyte: System.SByte short: System.Int16 ushort: System.UInt16 int: System.Int32 uint: System.UInt32 long: System.Int64 ulong: System.UInt64 char: System.Char