public static string ToName(this DetectorType type, DetectorTypeNameForm name) { switch (name) { case DetectorTypeNameForm.Normal: return(type.ToName()); case DetectorTypeNameForm.Short: return(type.ToShortName()); default: throw new ArgumentException("Unknown name kind"); } }
public static string ToName(this DetectorType type, DetectorTypeNameForm name) { switch (name) { case DetectorTypeNameForm.Normal: return type.ToName(); case DetectorTypeNameForm.Short: return type.ToShortName(); default: throw new ArgumentException("Unknown name kind"); } }