Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Lambda Refactor Tutorial - Dev Leader
- *
- * Blog Post:
- * http://devleader.ca/2013/11/14/lambdas-example-refactoring-code
- *
- * Classes:
- * Program.cs: http://pastebin.com/HsvqqBka
- * Base Classes: http://pastebin.com/s99Swhuk
- * Pre Refactor Classes: http://pastebin.com/4645gEgz
- * Post Refactor Classes: http://pastebin.com/ySLG2KqU
- *
- */
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace LambdaRefactor.Processing
- {
- public interface IProcessor
- {
- bool TryProcess(object input);
- }
- public interface IProcessorFactory
- {
- IProcessor Create(ProcessorType type, object mandatoryArgument, object value);
- }
- public enum ProcessorType
- {
- GreaterThan,
- LessThan,
- NumericEqual,
- StringEqual,
- StringNotEqual,
- /* we could add countless more types of processors here. realistically,
- * an enum may not be the best option to accomplish this, but for
- * demonstration purposes it'll make things much easier.
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement