public bool Equals(Function other) { bool result = !String.IsNullOrEmpty(TrimmedName) && !String.IsNullOrEmpty(other.TrimmedName) && TrimmedName.Equals(other.TrimmedName) && Parameters.Equals(other.Parameters); return(result); }
public virtual int MatchesFilter(string filter) { if (filter.NullOrEmpty()) { return(1); } if (ModManager.Settings.TrimTags && TrimmedName.ToLower().Contains(filter.ToLower()) || !ModManager.Settings.TrimTags && Name.ToLower().Contains(filter.ToLower( ))) { return(1); } return(0); }