Exemplo n.º 1
0
 public ParameterSymbolEqualityComparer(
     SymbolEquivalenceComparer symbolEqualityComparer,
     bool distinguishRefFromOut)
 {
     _symbolEqualityComparer = symbolEqualityComparer;
     _distinguishRefFromOut  = distinguishRefFromOut;
 }
 public EquivalenceVisitor(
     SymbolEquivalenceComparer symbolEquivalenceComparer,
     bool compareMethodTypeParametersByIndex,
     bool objectAndDynamicCompareEqually)
 {
     _symbolEquivalenceComparer          = symbolEquivalenceComparer;
     _compareMethodTypeParametersByIndex = compareMethodTypeParametersByIndex;
     _objectAndDynamicCompareEqually     = objectAndDynamicCompareEqually;
 }
 public GetHashCodeVisitor(
     SymbolEquivalenceComparer symbolEquivalenceComparer,
     bool compareMethodTypeParametersByIndex,
     bool objectAndDynamicCompareEqually)
 {
     _symbolEquivalenceComparer          = symbolEquivalenceComparer;
     _compareMethodTypeParametersByIndex = compareMethodTypeParametersByIndex;
     _objectAndDynamicCompareEqually     = objectAndDynamicCompareEqually;
     _parameterAggregator = (acc, sym) => Hash.Combine(symbolEquivalenceComparer.ParameterEquivalenceComparer.GetHashCode(sym), acc);
     _symbolAggregator    = (acc, sym) => GetHashCode(sym, acc);
 }
Exemplo n.º 4
0
 private SignatureComparer(SymbolEquivalenceComparer symbolEquivalenceComparer)
 {
     _symbolEquivalenceComparer = symbolEquivalenceComparer;
 }
Exemplo n.º 5
0
 public SignatureTypeSymbolEquivalenceComparer(SymbolEquivalenceComparer symbolEquivalenceComparer)
 {
     _symbolEquivalenceComparer = symbolEquivalenceComparer;
 }