MikeyJY
Member
- Joined
- Sep 19, 2021
- Messages
- 11
- Programming Experience
- 5-10
Is it possible to make a custom method that is contained in an array type? For example:
And in this case the method to be accessible just for instances of int[,]
And the second question is it possible to make those methods static to be used from the data type:
or at least from the corresponding wrapper classes:
C#:
int[,] array2D = new int[4,4];
array2D.customMethod();
And in this case the method to be accessible just for instances of int[,]
And the second question is it possible to make those methods static to be used from the data type:
C#:
int.method();
or at least from the corresponding wrapper classes:
I:
Int32.method();