Class SignatureMatch
- Namespace
- CilFi
- Assembly
- CilFi.Core.dll
Represents a match between a signature and a method in a .NET binary.
public record SignatureMatch : IEquatable<SignatureMatch>
- Inheritance
-
SignatureMatch
- Implements
- Inherited Members
Constructors
SignatureMatch(Signature, IMatchNode<MethodDefinition>)
Represents a match between a signature and a method in a .NET binary.
public SignatureMatch(Signature Signature, IMatchNode<MethodDefinition> RootNode)
Parameters
SignatureSignatureThe signature that was matched.
RootNodeIMatchNode<MethodDefinition>The root of the match tree containing all the matched objects.
SignatureMatch(SignatureMatch)
protected SignatureMatch(SignatureMatch original)
Parameters
originalSignatureMatch
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Method
Gets the method that matched the signature.
public MethodDefinition Method { get; }
Property Value
RootNode
The root of the match tree containing all the matched objects.
public IMatchNode<MethodDefinition> RootNode { get; init; }
Property Value
Signature
The signature that was matched.
public Signature Signature { get; init; }
Property Value
Methods
Deconstruct(out Signature, out IMatchNode<MethodDefinition>)
public void Deconstruct(out Signature Signature, out IMatchNode<MethodDefinition> RootNode)
Parameters
SignatureSignatureRootNodeIMatchNode<MethodDefinition>
Equals(SignatureMatch?)
public virtual bool Equals(SignatureMatch? other)
Parameters
otherSignatureMatch
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SignatureMatch?, SignatureMatch?)
public static bool operator ==(SignatureMatch? left, SignatureMatch? right)
Parameters
leftSignatureMatchrightSignatureMatch
Returns
operator !=(SignatureMatch?, SignatureMatch?)
public static bool operator !=(SignatureMatch? left, SignatureMatch? right)
Parameters
leftSignatureMatchrightSignatureMatch