Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal class IntRefLambda{
- #region Delegates
- public delegate int IntLambdaDelegate(int input);
- #endregion
- readonly IntRef _reference;
- readonly IntLambdaDelegate _function;
- public IntRefLambda(IntRef reference, IntLambdaDelegate functionToApply){
- _reference = reference;
- _function = functionToApply;
- }
- public int Value{
- get { return _function.Invoke(_reference.Value); }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement