public override int GetHashCode(OptionValueProvider obj) { return(StringComparer.Ordinal.GetHashCode(obj?.Name)); }
public OptionValueProvider(string name, OptionValueProvider parent, IEnumerable <OptionValue> values) { Name = name; Parent = parent; Values = values.ToImmutableArray(); }
public override bool Equals(OptionValueProvider x, OptionValueProvider y) { return(string.Equals(x?.Name, y?.Name)); }
public OptionValueProvider(string name, OptionValueProvider parent, params OptionValue[] values) { Name = name; Parent = parent; Values = values.ToImmutableArray(); }