Late bound resolution; runtime errors could occur
An object is assigned to a variable declared to be of the.
When you declare a variable as Object, the compiler must perform late binding, which causes extra operations at run time. It also exposes your application to potential run-time errors. For example, if you assign ato the Object variable and then try to access the property, the runtime throws a because the Form class does not expose a NameTable property.
If you declare the variable to be of a specific type, the compiler can perform early binding at compile time. This results in improved performance, controlled access to the members of the specific type, and better readability of your code.
By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see.
Error ID: BC42017
To correct this error
If possible, declare the variable to be of a specific type.