I am having a major problem here and I can't figure out how to solve it.
I have written my own custom class. The class has some properties, an event and some functions.
I want the class to be non-static, meaning that I can declare like this:
And I can declare like that, but here's the next problem:Code:MyClass thing = new MyClass();
If I make all the properties non-static the debugger says I need to have an instance each time I should set one of them...
Doesn't that mean that I need to to do something like this:
Instead of just this (static):Code:IntervalProperty myprop = new IntervalProperty(); myprop = 5;
??Code:IntervalProperty = 5;
And it's the same about everything :/
I want to be able to call just MyClass.Start(); without any extra code...
Urgent help needed, can't move forward in my project. Please show how to do with the properties, functions and events to make everything go around as a non static class or whateveryoucallit![]()





Reply With Quote