System.Data.Common.DbConnectionOptions.IsValueValidInternal C# (CSharp) Метод

IsValueValidInternal() приватный статический Метод

private static IsValueValidInternal ( string keyvalue ) : bool
keyvalue string
Результат bool
        private static bool IsValueValidInternal(string keyvalue)
        {
            if (null != keyvalue)
            {
#if DEBUG
                bool compValue = s_connectionStringValidValueRegex.IsMatch(keyvalue);
                Debug.Assert((-1 == keyvalue.IndexOf('\u0000')) == compValue, "IsValueValid mismatch with regex");
#endif
                return (-1 == keyvalue.IndexOf('\u0000'));
            }
            return true;
        }