예제 #1
0
        public bool VerifyMd5(string md5ToCompare)
        {
            System.StringComparer comparer = System.StringComparer.OrdinalIgnoreCase;

            if (comparer.Compare(ComputeMd5(), md5ToCompare) != 0)
            {
                return(false);
            }

            return(true);
        }
예제 #2
0
        } // End Extension Function System.Reflection.MemberInfo[].ToNameArray

        private static bool Contains(System.Collections.Generic.List <string> ls, string strValueToSearch, System.StringComparer cmp)
        {
            foreach (string strThisValue in ls)
            {
                if (cmp.Equals(strThisValue, strValueToSearch))
                {
                    return(true);
                }
            } // Next strThisValue

            return(false);
        } // End Extension Function List<string>.Contains
예제 #3
0
 public OptionSet(System.StringComparer comparer)
 {
 }
예제 #4
0
파일: cMD5Hash.cs 프로젝트: shkumat/MyTypes
 public CMd5Hash()
 {
     Md5Hash   = new   System.Text.StringBuilder();
     Comparer  = System.StringComparer.OrdinalIgnoreCase;
     Md5Hasher = System.Security.Cryptography.MD5.Create();
 }
예제 #5
0
 public OptionSet(System.Converter <string, string> localizer, System.StringComparer comparer)
 {
 }