Table of Contents

Struct TextSpan

Namespace
Glitch9.AIDevKit
public readonly struct TextSpan

Constructors

TextSpan(int, int, TextSpanType, ITextSpanData)

public TextSpan(int start, int end, TextSpanType type, ITextSpanData data = null)

Parameters

start int
end int
type TextSpanType
data ITextSpanData

Properties

Data

public ITextSpanData Data { get; }

Property Value

ITextSpanData

End

public int End { get; }

Property Value

int

Length

public int Length { get; }

Property Value

int

Start

public int Start { get; }

Property Value

int

Type

public TextSpanType Type { get; }

Property Value

TextSpanType

Methods

Deconstruct(out int, out int, out TextSpanType)

public void Deconstruct(out int start, out int end, out TextSpanType type)

Parameters

start int
end int
type TextSpanType

Equals(TextSpan)

public bool Equals(TextSpan other)

Parameters

other TextSpan

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.