Struct Range
A placeholder to allow .NET 4.8 functionality to compile. DO NOT USE!
Implements
Inherited Members
Namespace: System
Assembly: Gorgon.Core.dll
Syntax
public struct Range : IEquatable<Range>
Constructors
| Edit this page View SourceRange(Index, Index)
Initializes a new instance of the Range struct.
Declaration
public Range(Index p1, Index p2)
Parameters
Type | Name | Description |
---|---|---|
Index | p1 | The start. |
Index | p2 | The end. |
Properties
| Edit this page View SourceAll
Gets all.
Declaration
public static Range All { get; }
Property Value
Type | Description |
---|---|
Range |
End
Gets the end.
Declaration
public readonly Index End { get; }
Property Value
Type | Description |
---|---|
Index |
Start
Gets the start.
Declaration
public readonly Index Start { get; }
Property Value
Type | Description |
---|---|
Index |
Methods
| Edit this page View SourceEndAt(Index)
Ends at.
Declaration
public static Range EndAt(Index _)
Parameters
Type | Name | Description |
---|---|---|
Index | _ | The end. |
Returns
Type | Description |
---|---|
Range | Range. |
Equals(Range)
Indicates whether the current object is equal to another object of the same type.
Declaration
public readonly bool Equals(Range other)
Parameters
Type | Name | Description |
---|---|---|
Range | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool |
true
True
true
true (True in Visual Basic) if the current object is equal to the other parameter; otherwise, falseFalsefalsefalse (False in Visual Basic).
|
GetOffsetAndLength(int)
Gets the length of the offset and.
Declaration
public readonly (int, int) GetOffsetAndLength(int length)
Parameters
Type | Name | Description |
---|---|---|
int | length | The length. |
Returns
Type | Description |
---|---|
(int Start, int Count) | System.ValueTuple<System.Int32, System.Int32>. |
StartAt(Index)
Starts at.
Declaration
public static Range StartAt(Index _)
Parameters
Type | Name | Description |
---|---|---|
Index | _ | The end. |
Returns
Type | Description |
---|---|
Range | Range. |