public static bool Equals(EProgressType type, string typeStr) { if (string.IsNullOrEmpty(typeStr)) { return(false); } if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower())) { return(true); } return(false); }
public static string GetValue(EProgressType type) { if (type == EProgressType.CreateChannels) { return("CreateChannels"); } if (type == EProgressType.CreateContents) { return("CreateContents"); } throw new Exception(); }
public static bool Equals(string typeStr, EProgressType type) { return(Equals(type, typeStr)); }