Table of Contents

Class Signature

Namespace
CilFi
Assembly
CilFi.Core.dll

Defines a signature that matches a method in a .NET binary.

public record Signature : IEquatable<Signature>
Inheritance
Signature
Implements
Inherited Members

Constructors

Signature(Signature)

protected Signature(Signature original)

Parameters

original Signature

Signature(string, string?, string?, Pattern<MethodDefinition>)

Defines a signature that matches a method in a .NET binary.

public Signature(string Name, string? Author, string? Description, Pattern<MethodDefinition> Pattern)

Parameters

Name string

The name of the signature.

Author string

The author(s) of the signature.

Description string

The description of the signature.

Pattern Pattern<MethodDefinition>

The pattern to match the method on.

Properties

Author

The author(s) of the signature.

public string? Author { get; init; }

Property Value

string

Description

The description of the signature.

public string? Description { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

The name of the signature.

public string Name { get; init; }

Property Value

string

Pattern

The pattern to match the method on.

public Pattern<MethodDefinition> Pattern { get; init; }

Property Value

Pattern<MethodDefinition>

Methods

Deconstruct(out string, out string?, out string?, out Pattern<MethodDefinition>)

public void Deconstruct(out string Name, out string? Author, out string? Description, out Pattern<MethodDefinition> Pattern)

Parameters

Name string
Author string
Description string
Pattern Pattern<MethodDefinition>

Equals(Signature?)

public virtual bool Equals(Signature? other)

Parameters

other Signature

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 ==(Signature?, Signature?)

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

Parameters

left Signature
right Signature

Returns

bool

operator !=(Signature?, Signature?)

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

Parameters

left Signature
right Signature

Returns

bool