public static bool Equals(EUserBindingType type, string typeStr) { if (string.IsNullOrEmpty(typeStr)) { return(false); } if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower())) { return(true); } return(false); }
public static string GetText(EUserBindingType type) { if (type == EUserBindingType.Weibo) { return("新浪微博"); } if (type == EUserBindingType.QQ) { return("QQ"); } throw new Exception(); }
public static string GetValue(EUserBindingType type) { if (type == EUserBindingType.Weibo) { return("Weibo"); } else if (type == EUserBindingType.QQ) { return("QQ"); } else { throw new Exception(); } }
public static string GetText(EUserBindingType type) { if (type == EUserBindingType.Weibo) { return("ÐÂÀË΢²©"); } else if (type == EUserBindingType.QQ) { return("QQ"); } else { throw new Exception(); } }
public static bool Equals(string typeStr, EUserBindingType type) { return(Equals(type, typeStr)); }