Horje
c# resize multidimensional array Code Example
c# resize multidimensional array
void ResizeArray<T>(ref T[,] original, int newCoNum, int newRoNum)
    {
        var newArray = new T[newCoNum,newRoNum];
        int columnCount = original.GetLength(1);
        int columnCount2 = newRoNum;
        int columns = original.GetUpperBound(0);
        for (int co = 0; co <= columns; co++)
            Array.Copy(original, co * columnCount, newArray, co * columnCount2, columnCount);
        original = newArray;
    }




Csharp

Related
c# ensure static constructor is called Code Example c# ensure static constructor is called Code Example
how to check type in c# Code Example how to check type in c# Code Example
begininvoke async c# Code Example begininvoke async c# Code Example
ExceptionFilterAttribute exception-handler-middleware-not-catching Code Example ExceptionFilterAttribute exception-handler-middleware-not-catching Code Example
c# fold sum array Code Example c# fold sum array Code Example

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