Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

Im having trouble designing this... Any help would be appreciated...

(Im using C#)

 

I have 2 classes A, and B, each with a few integer and float properties.

How would I go about designing this, if the requirement is that the user needs to be able to add in rules (at runtime) relating to these properties.

 

Example...

 

At runtime, the user needs to be aware of the properties in Class A and B (possibly through reflection ?), and be able to add a 'rule' ...eg. "if property A1 from class A is > property B2 from class B".. then perform some alert. The user should be able to add some sort of comparison rule (<, >, =) of any of the float/integer properties between Class A and B.

 

Thanks....

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...