Server.Insensitive.StartsWith C# (CSharp) 메소드

StartsWith() 공개 정적인 메소드

public static StartsWith ( string a, string b ) : bool
a string
b string
리턴 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

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