General information
Title:
How to directly access class methods?
I created class library and after compiling it, I want to access or use it in other projects. I successfully attached the class dll in my project but why is it that everytime I want to use the method properties I need to create new instance of the class?
MyClassMethod myClsMethod = new MyClassMethod();
int var1 = myClsMethod.GetTotalTax();
I've seen VFPToolkit source code but using it is very easy. There is no need to create new instance of the class. Why?
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only