Class ParameterListComparer
- Namespace
- ICSharpCode.Decompiler.TypeSystem
- Assembly
- ICSharpCode.Decompiler.dll
Compares parameter lists by comparing the types of all parameters.
public sealed class ParameterListComparer : IEqualityComparer<IReadOnlyList<IParameter>>
- Inheritance
-
ParameterListComparer
- Implements
- Inherited Members
Remarks
'ref int' and 'out int' are considered to be equal - unless ICSharpCode.Decompiler.TypeSystem.ParameterListComparer.includeModifiers is set to true. 'object' and 'dynamic' are also equal. For generic methods, "Method{T}(T a)" and "Method{S}(S b)" are considered equal. However, "Method(T a)" and "Method(S b)" are not considered equal when the type parameters T and S belong to classes.
Constructors
ParameterListComparer()
public ParameterListComparer()
Fields
Instance
public static readonly ParameterListComparer Instance
Field Value
Methods
Equals(IReadOnlyList<IParameter>, IReadOnlyList<IParameter>)
public bool Equals(IReadOnlyList<IParameter> x, IReadOnlyList<IParameter> y)
Parameters
Returns
GetHashCode(IReadOnlyList<IParameter>)
public int GetHashCode(IReadOnlyList<IParameter> obj)
Parameters
obj
IReadOnlyList<IParameter>
Returns
WithOptions(bool)
public static ParameterListComparer WithOptions(bool includeModifiers = false)
Parameters
includeModifiers
bool