示例#1
0
        public static int ToId(ABSourceProperty property)
        {
            switch (property)
            {
            case ABSourceProperty.Name:
                return(Name);

            case ABSourceProperty.Type:
                return(Type);
            }
            throw new NotSupportedException("Invalid ABSourceProperty value: " + property);
        }
示例#2
0
 public static int ToId(ABSourceProperty property)
 {
     switch (property) {
     case ABSourceProperty.Name:
         return Name;
     case ABSourceProperty.Type:
         return Type;
     }
     throw new NotSupportedException ("Invalid ABSourceProperty value: " + property);
 }