//Class A
void OnChanged(object source, FileSystemEventArgs e)
{
XmlTextReader reader = new XmlTextReader("?"); <- How will I pass the "file" variable from Class B?
}
//Class B
public static bool myMethod(FileInfo file)
{
//some codes here
return false;
}
I know you have to put some properties for this to pass the variable but I’m not sure yet where to start. Adding some codes may help me understand properties better.
1 Answer