Skip to content
Concord

Class SliceRange

Namespace
Concord.Emit
Assembly
Concord.Emit.dll

A range of a target body, expressed as two member-access anchors. An injection that carries a range matches and counts only inside it.

public sealed record SliceRange : IEquatable<SliceRange>
Inheritance
SliceRange
Implements
Inherited Members

Constructors

SliceRange(Type?, string?, uint, Type?, string?, uint)

A range of a target body, expressed as two member-access anchors. An injection that carries a range matches and counts only inside it.

public SliceRange(Type? FromType, string? FromMember, uint FromBy, Type? ToType, string? ToMember, uint ToBy)

Parameters

FromType Type

The declaring type of the opening anchor. Leave this and FromMember both null to start at the body head. Naming one without the other raises CONC131.

FromMember string

The member name of the opening anchor.

FromBy uint

The 1-based occurrence of the opening anchor, counted across the whole body.

ToType Type

The declaring type of the closing anchor. Leave this and ToMember both null to end at the body tail. Naming one without the other raises CONC132.

ToMember string

The member name of the closing anchor.

ToBy uint

The 1-based occurrence of the closing anchor, counted across the whole body.

Properties

FromBy

The 1-based occurrence of the opening anchor, counted across the whole body.

public uint FromBy { get; init; }

Property Value

uint

FromMember

The member name of the opening anchor.

public string? FromMember { get; init; }

Property Value

string

FromType

The declaring type of the opening anchor. Leave this and FromMember both null to start at the body head. Naming one without the other raises CONC131.

public Type? FromType { get; init; }

Property Value

Type

ToBy

The 1-based occurrence of the closing anchor, counted across the whole body.

public uint ToBy { get; init; }

Property Value

uint

ToMember

The member name of the closing anchor.

public string? ToMember { get; init; }

Property Value

string

ToType

The declaring type of the closing anchor. Leave this and ToMember both null to end at the body tail. Naming one without the other raises CONC132.

public Type? ToType { get; init; }

Property Value

Type