Table of Contents

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

Signature Signature

The signature that was matched.

RootNode IMatchNode<MethodDefinition>

The root of the match tree containing all the matched objects.

SignatureMatch(SignatureMatch)

protected SignatureMatch(SignatureMatch original)

Parameters

original SignatureMatch

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Method

Gets the method that matched the signature.

public MethodDefinition Method { get; }

Property Value

MethodDefinition

RootNode

The root of the match tree containing all the matched objects.

public IMatchNode<MethodDefinition> RootNode { get; init; }

Property Value

IMatchNode<MethodDefinition>

Signature

The signature that was matched.

public Signature Signature { get; init; }

Property Value

Signature

Methods

Deconstruct(out Signature, out IMatchNode<MethodDefinition>)

public void Deconstruct(out Signature Signature, out IMatchNode<MethodDefinition> RootNode)

Parameters

Signature Signature
RootNode IMatchNode<MethodDefinition>

Equals(SignatureMatch?)

public virtual bool Equals(SignatureMatch? other)

Parameters

other SignatureMatch

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SignatureMatch?, SignatureMatch?)

public static bool operator ==(SignatureMatch? left, SignatureMatch? right)

Parameters

left SignatureMatch
right SignatureMatch

Returns

bool

operator !=(SignatureMatch?, SignatureMatch?)

public static bool operator !=(SignatureMatch? left, SignatureMatch? right)

Parameters

left SignatureMatch
right SignatureMatch

Returns

bool