this Property Of String C# with Example
using System; namespace CSharpFundamentals { class thisPropertyOfString { private static void Main(string[] args) { string name = "C# is COOL too"; Console.WriteLine("Total Characters of the String: {0}", name.Length); Console.WriteLine("Both Strings are Equal: {0}", String.Compare(name, name)); Console.WriteLine("Both Strings are Equal: {0}", String.Compare("D#", name)); Console.WriteLine("Both Strings are Equal: {0}", String.Compare(name, "D#")); } } }