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); }
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); }