public static string LocalizeProperty(CNInstantMessageAddressOption property) { switch (property) { case CNInstantMessageAddressOption.Username: return LocalizeProperty (CNInstantMessageAddressKey.Username); case CNInstantMessageAddressOption.Service: return LocalizeProperty (CNInstantMessageAddressKey.Service); default: throw new ArgumentOutOfRangeException ("serviceOption"); } }
public static string LocalizeProperty(CNInstantMessageAddressOption property) { switch (property) { case CNInstantMessageAddressOption.Username: return(LocalizeProperty(CNInstantMessageAddressKey.Username)); case CNInstantMessageAddressOption.Service: return(LocalizeProperty(CNInstantMessageAddressKey.Service)); default: throw new ArgumentOutOfRangeException("serviceOption"); } }