Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IMappingRuleFactory
- {
- IMappingRule Create(string mappingRuleName, dynamic parameters);
- }
- public interface IMappingRule
- {
- void Execute();
- }
- public class MappingRuleFactory : IMappingRuleFactory
- {
- public IMappingRule Create(string mappingRuleName, dynamic parameters)
- {
- IMappingRule mappingRule = null;
- switch (mappingRuleName)
- {
- case "fooBaz":
- mappingRule = new FooBaz(parameters);
- break;
- }
- return mappingRule;
- }
- }
- }],
- }
- }],
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement