Horje
c# reflection resize array Code Example
c# reflection resize array
static void Resize(ref Array array, int newSize) {        
    Type elementType = array.GetType().GetElementType();
    Array newArray = Array.CreateInstance(elementType, newSize);
    Array.Copy(array, newArray, Math.Min(array.Length, newArray.Length));
    array = newArray;
}




Csharp

Related
yield keyword Code Example yield keyword Code Example
c# if statement one line Code Example c# if statement one line Code Example
convert string to int and read it Code Example convert string to int and read it Code Example
float parse c# Code Example float parse c# Code Example
C# tolower all in a array Code Example C# tolower all in a array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10