protected bool DoesFieldExist(ViewFieldCollection viewFields, string fieldName) { foreach (var viewField in viewFields) { if (System.String.Compare(viewField, fieldName, System.StringComparison.OrdinalIgnoreCase) == 0) return true; } return false; }
protected bool DoesFieldExist(ViewFieldCollection viewFields, string fieldName) { foreach (var viewField in viewFields) { if (System.String.Compare(viewField, fieldName, System.StringComparison.OrdinalIgnoreCase) == 0) return true; } return false; }