Passing one Dimension of a Two Dimensional Array in C#

后端 未结 6 983
耶瑟儿~
耶瑟儿~ 2021-01-21 07:31

I have moved from C to C#. I have a function which accepts an array. I want to pass one dimension of a Two Dimensional array to this function.

C Code would be:-

6条回答
  •  终归单人心
    2021-01-21 07:50

    Just declare method

    private void ParseArray(int[,] ar)
    {
        // Some work...
    }
    
    • UDP: Code format

提交回复
热议问题