Noble Connect
Add relays and punchthrough to Mirror or UNet
NobleConnect.ImmutableArray< T > Struct Template Reference

A generic ImmutableArray More...

Inherits IEnumerable.

Public Member Functions

 ImmutableArray (T[] array)
 Create an ImmutableArray from an array More...
 
IEnumerator GetEnumerator ()
 Get an Enumerator for the backing array More...
 

Properties

this[int i] [get]
 Get an element from the backing array More...
 

Detailed Description

A generic ImmutableArray

Immutability is maintained by declaring the array readonly and not providing a setter.

Template Parameters
T

Constructor & Destructor Documentation

◆ ImmutableArray()

Create an ImmutableArray from an array

Parameters
array

Member Function Documentation

◆ GetEnumerator()

IEnumerator NobleConnect.ImmutableArray< T >.GetEnumerator ( )

Get an Enumerator for the backing array

Returns

Property Documentation

◆ this[int i]

T NobleConnect.ImmutableArray< T >.this[int i]
get

Get an element from the backing array

Parameters
i
Returns