Hi all. Thank you for any help you can provide.
I have a class in my exe which contains some public properties and methods. Here's what I want to do. I'm parsing address information from some xml data and then populating the properties in my class. After the properties are populated I want to let other developers write custom rules against the information I've place in the properties.
So for example after the xml is parsed I have something like
MyClass.FirstName = "John";
MyClass.LastName = "Smith";
I want to let other developers create custom rules in something like CustomRules.dll. In there I need them to be able to access all the properties and methods in MyClass so they can do things like: If (MyClass.FirstName == "John"&& MyClass.LastName == "Smith") { MessageBox.Show("Is that your real name?") };
Thank you.