yambroskin

Untitled

Aug 14th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using EleWise.TemplateGenerator.Functions;
  2.  
  3. namespace Impeltech.Bank.Extensions
  4. {
  5. public static class FunctionEvaluationContextExtension
  6. {
  7. public static TProperty Retrieve<TProperty>(this FunctionEvaluationContext context, int numberParameter) where TProperty : class
  8. {
  9. if (context.Parameters.Count <= numberParameter) return null;
  10. var ctxParam = context.Parameters[numberParameter];
  11. return ctxParam?.Value as TProperty;
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment