예제 #1
0
        public static bool IsSchemaQualifiedName(string value)
        {
            if (string.IsNullOrEmpty(value))
            {
                return(false);
            }
            var underscore = value.IndexOf(Constants.UNDERSCORE);

            if ((underscore < 1) || (underscore == value.Length - 1))
            {
                return(false);
            }
            return(StringValidator.IsSchemaName(value.Substring(0, underscore)) &&
                   StringValidator.IsIdentifier(value.Substring(underscore + 1)));
        }
예제 #2
0
 public static bool IsSpecialName(string name)
 {
     return(name.StartsWith("__") && StringValidator.IsIdentifier(name.Substring(2)));
 }
예제 #3
0
 public static bool IsAliasIdentifier(string value)
 {
     return(!string.IsNullOrEmpty(value) &&
            (value.First() == '$') &&
            StringValidator.IsIdentifier(value.Substring(1)));
 }
예제 #4
0
 public static bool IsLocalName(string value)
 {
     return(StringValidator.IsIdentifier(value));
 }