Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

C# Access Public Properties From External DLL

$
0
0

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.


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>