Server.Insensitive.StartsWith C# (CSharp) Méthode

StartsWith() public static méthode

public static StartsWith ( string a, string b ) : bool
a string
b string
Résultat bool
		public static bool StartsWith( string a, string b )
		{
			if ( a == null || b == null || a.Length < b.Length )
				return false;

			return ( m_Comparer.Compare( a.Substring( 0, b.Length ), b ) == 0 );
		}

Usage Example

 public static bool InsensitiveStartsWith(string first, string second)
 {
     return(Insensitive.StartsWith(first, second));
 }
All Usage Examples Of Server.Insensitive::StartsWith