Gorgon
Show / Hide Table of Contents

Struct Range

A placeholder to allow .NET 4.8 functionality to compile. DO NOT USE!

Implements
IEquatable<Range>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: System
Assembly: Gorgon.Core.dll
Syntax
public struct Range : IEquatable<Range>

Constructors

| Edit this page View Source

Range(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 Source

All

Gets all.

Declaration
public static Range All { get; }
Property Value
Type Description
Range
| Edit this page View Source

End

Gets the end.

Declaration
public readonly Index End { get; }
Property Value
Type Description
Index
| Edit this page View Source

Start

Gets the start.

Declaration
public readonly Index Start { get; }
Property Value
Type Description
Index

Methods

| Edit this page View Source

EndAt(Index)

Ends at.

Declaration
public static Range EndAt(Index _)
Parameters
Type Name Description
Index _

The end.

Returns
Type Description
Range

Range.

| Edit this page View Source

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).
| Edit this page View Source

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>.

| Edit this page View Source

StartAt(Index)

Starts at.

Declaration
public static Range StartAt(Index _)
Parameters
Type Name Description
Index _

The end.

Returns
Type Description
Range

Range.

Implements

IEquatable<T>

Extension Methods

GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author