String মানে System.String আর string হলো C#-এ System.String-এর একটি এলিয়াস (alias)।
উদাহরণস্বরূপ:
string str = "Welcome!";
এটি আবশ্যক নয়, কিন্তু সাধারণত String ব্যবহার করা হয় যখন আপনি ক্লাসের সাথে কাজ করেন।
string str = String.Format("Welcome! {0}!", user);
যেহেতু string হলো System.String-এর এলিয়াস। অন্যান্য ডেটা টাইপের এলিয়াসগুলো:
উদাহরণ
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