Struct TextSpan
public readonly struct TextSpan
Constructors
TextSpan(int, int, TextSpanType, ITextSpanData)
public TextSpan(int start, int end, TextSpanType type, ITextSpanData data = null)
Parameters
startintendinttypeTextSpanTypedataITextSpanData
Properties
Data
public ITextSpanData Data { get; }
Property Value
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
Methods
Deconstruct(out int, out int, out TextSpanType)
public void Deconstruct(out int start, out int end, out TextSpanType type)
Parameters
startintendinttypeTextSpanType
Equals(TextSpan)
public bool Equals(TextSpan other)
Parameters
otherTextSpan
Returns
- bool
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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.