Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 186759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:42:12+00:00 2026-05-11T15:42:12+00:00

I have requirement to build new rule engine in which i have rule like

  • 0

I have requirement to build new rule engine in which i have rule like this which is stored in Excel sheet, in tabular format.

<If>  'Name = Nita ' <Value> '200' <else> 'Name = Gita' <value> '300' <LookInto> '/Name/@Income' 

I have two files say 1 n 2. i need to see in first file that whether Name is Nita or Gita. Based on execution i will get value. Now this result value i need to compare with second file , which is a xml file and whose path has been defined into .

can anybody suggest me that is there anything in C# that i can use effectively to develop the same,, or can anybody suggest me how i can achieve this with C#.. i need some idea for class design of the same.

I am using .Net 1.1.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:42:12+00:00Added an answer on May 11, 2026 at 3:42 pm

    Firstly, you need to create classes that can define your rules. Once you have this structure in place, you will be able to build an engine that utilises those classes.

    I would look at creating something like:

    class RuleEngine  {   public RuleMatch[] RuleMatches { get; set; }   public void RunEngine(inputdata...)    {       // do processing in here   } }  class RuleMatch  {   public Rule[] Rules { get; set; }   public Object ValueIfMatched { get; set; } }  class Rule  {   public String FieldName { get; set; }   public MatchType Match { get; set; }   public Object Value { get; set; } )  enum MatchType  {   Equal = 1,   NotEqual = 2,   GreaterThan = 4,   LessThan = 8,   Like = 16 } 

    Then go on from there….

    This structure would be better if it was changed to have a group of rules that could be added to a group of rules, for example (a AND b) OR (c AND d) – I’ll leave this to you to think about for now.


    Please note I’m using some C# 3.0 constructs here, you will need to create full private properties in 1.1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement to build a textView which contains something like: Title[x] followed
I have requirement like, suppose I have a 'property' table which has 'ListingKey' field
Requirement: I'd like all implementations of an interface to have a well-defined name. Initially,
In jenkins, we have a requirement like having the options that appear under build
I have a requirement for my MAVEN build to pick a single jar from
I am planning to build compiler for Requirement Specification Language. I have come up
I have requirement where some times I would like to load children as well
I have requirement to disable copy/paste/cut operations on a textbox. For this purpose I
I have requirement as following like showing ABPeoplePickerNavigationController in tabbar based application. I researched
i am using kettle 3.2 . i have a requirement like i need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.