Equals Invariant Culture Ignore Case - CSharp System

CSharp examples for System:String Case

Description

Equals Invariant Culture Ignore Case

Demo Code


using System.Globalization;
using System;/*from ww  w.j av  a 2 s  . c  o m*/

public class Main{
        public static bool EqualsInvariantCultureIgnoreCase(this string str, string s)
		{
			return str.Equals(s, StringComparison.InvariantCultureIgnoreCase);
		}
}

Related Tutorials