Tanoda
Leap.Unity.ReadonlyList< T > Struct Template Reference

A simple wrapper around List to provide readonly access. Useful when you want to return a list to someone but you want to make sure they don't muck it up! More...

Public Member Functions

 ReadonlyList (List< T > list)
 
List< T >.Enumerator GetEnumerator ()
 
int IndexOf (T item)
 

Static Public Member Functions

static implicit operator ReadonlyList< T > (List< T > list)
 

Properties

bool isValid [get]
 
int Count [get]
 
this[int index] [get]
 

Detailed Description

A simple wrapper around List to provide readonly access. Useful when you want to return a list to someone but you want to make sure they don't muck it up!

Definition at line 20 of file ReadonlyList.cs.

Constructor & Destructor Documentation

◆ ReadonlyList()

Leap.Unity.ReadonlyList< T >.ReadonlyList ( List< T >  list)

Definition at line 23 of file ReadonlyList.cs.

Member Function Documentation

◆ GetEnumerator()

List< T >.Enumerator Leap.Unity.ReadonlyList< T >.GetEnumerator ( )

Definition at line 45 of file ReadonlyList.cs.

◆ IndexOf()

int Leap.Unity.ReadonlyList< T >.IndexOf ( item)

Definition at line 53 of file ReadonlyList.cs.

◆ operator ReadonlyList< T >()

static implicit Leap.Unity.ReadonlyList< T >.operator ReadonlyList< T > ( List< T >  list)
static

Definition at line 49 of file ReadonlyList.cs.

Property Documentation

◆ Count

int Leap.Unity.ReadonlyList< T >.Count
get

Definition at line 33 of file ReadonlyList.cs.

◆ isValid

bool Leap.Unity.ReadonlyList< T >.isValid
get

Definition at line 27 of file ReadonlyList.cs.

◆ this[int index]

T Leap.Unity.ReadonlyList< T >.this[int index]
get

Definition at line 39 of file ReadonlyList.cs.


The documentation for this struct was generated from the following file: