Summary
If the `array` is
null or its System.Array.Length isn't equal to the specified `length`, this
method creates a new array with that `length` and returns true.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
public static bool SetLength<T>(ref T[] array, int length)
Remarks
Unlike
System.Array.Resize``1(``0[]@,System.Int32), this method doesn't copy over the contents of the old
`array` into the new one.
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| array | T[] | |
| length | int |
Return Value
| Type | Description |
|---|---|
| bool |