Table of Contents

Class CilOffsetLabel

Namespace
AsmResolver.PE.DotNet.Cil
Assembly
AsmResolver.PE.dll

Represents a label to a CIL instruction referenced by a fixed offset relative to the start of the CIL method body.

public class CilOffsetLabel : ICilLabel, IEquatable<ICilLabel>
Inheritance
CilOffsetLabel
Implements
Inherited Members

Constructors

CilOffsetLabel(int)

Creates a new fixed offset CIL label.

public CilOffsetLabel(int offset)

Parameters

offset int

The offset of the instruction to reference.

Properties

Offset

Gets the offset of the referenced instruction.

public int Offset { get; }

Property Value

int

Methods

Equals(ICilLabel?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ICilLabel? other)

Parameters

other ICilLabel

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.