My code works good , but when I move a method from one class to another , error occur :
An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.
Additional information: Object reference not set to an instance of an object.
There is no source code available for current location.
Please help me , thank you.

Please help me with strange error while compile code
Bob Myles
Elif Onalan
Aknittel
Hi. Probably you are using a method from a class that still does not get intanciated. Maybe you forgot to make use of "new" keyword.
"Object reference not set to an instance of an object" is the kind of message you receive when you do this kind of things.
ruigkgfvkljhif
Your first step would be to post the method in question. What are the two classes you're moving between, and why