I'm quite new to C#, evidently, and I'm trying to initialise a list (or an array) in a class that shall be defined when an instance of this class is made. Something like:
class Testing { Private int[] _cords = new int[2]; Public Testing(int num1, int num2) { _cords = {num1, num2}; }}
class Testing { Private int[] _cords = new int[2]; Public Testing(int num1, int num2) { _cords = {num1, num2}; }}
this code is ofcourse wrong, but I believe it should kinda explain what im trying to do.