示例#1
0
 public static string LocalizeProperty(CNSocialProfileOption option)
 {
     switch (option) {
     case CNSocialProfileOption.UrlString:
         return LocalizeProperty (CNSocialProfileKey.UrlString);
     case CNSocialProfileOption.Username:
         return LocalizeProperty (CNSocialProfileKey.Username);
     case CNSocialProfileOption.UserIdentifier:
         return LocalizeProperty (CNSocialProfileKey.UserIdentifier);
     case CNSocialProfileOption.Service:
         return LocalizeProperty (CNSocialProfileKey.Service);
     default:
         throw new ArgumentOutOfRangeException ("option");
     }
 }
        public static string LocalizeProperty(CNSocialProfileOption option)
        {
            switch (option)
            {
            case CNSocialProfileOption.UrlString:
                return(LocalizeProperty(CNSocialProfileKey.UrlString));

            case CNSocialProfileOption.Username:
                return(LocalizeProperty(CNSocialProfileKey.Username));

            case CNSocialProfileOption.UserIdentifier:
                return(LocalizeProperty(CNSocialProfileKey.UserIdentifier));

            case CNSocialProfileOption.Service:
                return(LocalizeProperty(CNSocialProfileKey.Service));

            default:
                throw new ArgumentOutOfRangeException("option");
            }
        }