سلام
من یک تابع تعریف کردم با پارامتر های زیر
ولی وقتی توی main اونو فراخوانی می کنم این پیغام خطلا رو میده مشکل کجاست
ممنون
سلام
من یک تابع تعریف کردم با پارامتر های زیر
ولی وقتی توی main اونو فراخوانی می کنم این پیغام خطلا رو میده مشکل کجاست
ممنون
private static void createnumber( int[] numbers, int count, int max, int[] z, int m)
منبع :http://www.blackwasp.co.uk/CSharpStaticBehaviour.aspx
It is important to understand that static methods may not directly use non-static members. It is invalid for one static method to directly call a non-static method or property without first instantiating an object. Similarly, private variables that are not marked as static cannot be utilised by a static method. The reverse of this is not true of course, as a non-static member can call a static method.
...مرا به خانه ام ببر، اگرچه خانه؛ خانه نیست