public override int GetHashCode(OptionValueProvider obj)
 {
     return(StringComparer.Ordinal.GetHashCode(obj?.Name));
 }
예제 #2
0
 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));
 }
예제 #4
0
 public OptionValueProvider(string name, OptionValueProvider parent, params OptionValue[] values)
 {
     Name   = name;
     Parent = parent;
     Values = values.ToImmutableArray();
 }