private bool TryGetValidationMethod(int index, out ValidateArgumentInfo valArginfo) { valArginfo = this.SettingsInfo.ValidateArgumentInfos .FirstOrDefault(info => info.Index == index); return(valArginfo != null); }
private bool TryGetValidationMethod(out ValidateArgumentInfo valArginfo) { valArginfo = this.SettingsInfo.ValidateArgumentInfos .FirstOrDefault(info => !info.HasName && !info.HasIndex); return(valArginfo != null); }
private bool TryGetValidationMethod(string name, out ValidateArgumentInfo valArginfo) { valArginfo = this.SettingsInfo.ValidateArgumentInfos .FirstOrDefault(info => info.HasName && info.Name.Equals(name, this.SettingsInfo.ComparisonRule)); return(valArginfo != null); }