コード例 #1
0
 public ParameterSymbolEqualityComparer(
     SymbolEquivalenceComparer symbolEqualityComparer,
     bool distinguishRefFromOut)
 {
     _symbolEqualityComparer = symbolEqualityComparer;
     _distinguishRefFromOut  = distinguishRefFromOut;
 }
コード例 #2
0
 public EquivalenceVisitor(
     SymbolEquivalenceComparer symbolEquivalenceComparer,
     bool compareMethodTypeParametersByIndex,
     bool objectAndDynamicCompareEqually)
 {
     _symbolEquivalenceComparer          = symbolEquivalenceComparer;
     _compareMethodTypeParametersByIndex = compareMethodTypeParametersByIndex;
     _objectAndDynamicCompareEqually     = objectAndDynamicCompareEqually;
 }
コード例 #3
0
 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);
 }
 public SignatureTypeSymbolEquivalenceComparer(SymbolEquivalenceComparer symbolEquivalenceComparer)
 {
     _symbolEquivalenceComparer = symbolEquivalenceComparer;
 }