Gorgon
Show / Hide Table of Contents

Struct Index

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

Implements
IEquatable<Index>
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 Index : IEquatable<Index>

Constructors

| Edit this page View Source

Index(int, bool)

Initializes a new instance of the Index struct.

Declaration
public Index(int p1, bool p2)
Parameters
Type Name Description
int p1

The p1.

bool p2

if set to true [p2].

Properties

| Edit this page View Source

End

Dummy property.

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

IsFromEnd

Dummy property.

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

Start

Dummy property.

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

Value

Dummy property.

Declaration
public readonly int Value { get; }
Property Value
Type Description
int

Methods

| Edit this page View Source

Equals(Index)

Indicates whether the current object is equal to another object of the same type.

Declaration
public readonly bool Equals(Index other)
Parameters
Type Name Description
Index 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

GetOffset(int)

Gets the offset.

Declaration
public readonly int GetOffset(int length)
Parameters
Type Name Description
int length

The length.

Returns
Type Description
int

int.

Operators

| Edit this page View Source

implicit operator Index(int)

Performs an implicit conversion from int to Index.

Declaration
public static implicit operator Index(int value)
Parameters
Type Name Description
int value

The value.

Returns
Type Description
Index

The result of the conversion.

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