Show / Hide Table of Contents

# Class SyncList<T>

##### Inheritance

System.Object
SyncList<T>

###### Namespace: LiteEntitySystem

###### Assembly: LiteEntitySystem.dll

##### Syntax

    public class SyncList<T> : object where T : struct

##### Type Parameters

Name | Description
--- | ---
T |

### Constructors

#### SyncList()

##### Declaration

    public SyncList()

#### SyncList(Int32)

##### Declaration

    public SyncList(int capacity)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | capacity |

### Properties

#### Count

##### Declaration

    public int Count { get; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### Item[Int32]

##### Declaration

    public ref T this[int index] { get; }

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | index |

##### Property Value

Type | Description
--- | ---
T |

### Methods

#### Add(T)

##### Declaration

    public void Add(T item)

##### Parameters

Type | Name | Description
--- | --- | ---
T | item |

#### Clear()

##### Declaration

    public void Clear()

#### CloneFrom(T[])

##### Declaration

    public void CloneFrom(T[] array)

##### Parameters

Type | Name | Description
--- | --- | ---
T[] | array |

#### CloneFrom(T[], Int32)

##### Declaration

    public void CloneFrom(T[] array, int count)

##### Parameters

Type | Name | Description
--- | --- | ---
T[] | array |
System.Int32 | count |

#### CloneFrom(List<T>)

##### Declaration

    public void CloneFrom(List<T> list)

##### Parameters

Type | Name | Description
--- | --- | ---
List<T> | list |

#### CloneFrom(SyncList<T>)

##### Declaration

    public void CloneFrom(SyncList<T> list)

##### Parameters

Type | Name | Description
--- | --- | ---
SyncList<T> | list |

#### Contains(T)

##### Declaration

    public bool Contains(T item)

##### Parameters

Type | Name | Description
--- | --- | ---
T | item |

##### Returns

Type | Description
--- | ---
System.Boolean |

#### CopyTo(T[], Int32)

##### Declaration

    public void CopyTo(T[] array, int arrayIndex)

##### Parameters

Type | Name | Description
--- | --- | ---
T[] | array |
System.Int32 | arrayIndex |

#### FullClear()

##### Declaration

    public void FullClear()

#### IndexOf(T)

##### Declaration

    public int IndexOf(T item)

##### Parameters

Type | Name | Description
--- | --- | ---
T | item |

##### Returns

Type | Description
--- | ---
System.Int32 |

#### Insert(Int32, T)

##### Declaration

    public void Insert(int index, T item)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | index |
T | item |

#### Remove(T)

##### Declaration

    public bool Remove(T item)

##### Parameters

Type | Name | Description
--- | --- | ---
T | item |

##### Returns

Type | Description
--- | ---
System.Boolean |

#### RemoveAt(Int32)

##### Declaration

    public void RemoveAt(int index)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | index |

#### ToArray()

##### Declaration

    public T[] ToArray()

##### Returns

Type | Description
--- | ---
T[] |