Why cant i use class methods on object that was created in another class in c#?

cedenlalued

New Member
How could I send xmldocument object to a function in another class?In the example below I didn't get all xmldocument methods and properties to show from scan function.\[code\]xmldocument xmldoc = new xmldocument();xmldoc.load(test.xml);anotherclass axls = new anotherclass();axls.scan(xmldoc);public class anotherclass(){ public void scan(object xmldoc) { some code }}\[/code\]
 
Back
Top