Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using EleWise.TemplateGenerator.Functions;
- namespace Impeltech.Bank.Extensions
- {
- public static class FunctionEvaluationContextExtension
- {
- public static TProperty Retrieve<TProperty>(this FunctionEvaluationContext context, int numberParameter) where TProperty : class
- {
- if (context.Parameters.Count <= numberParameter) return null;
- var ctxParam = context.Parameters[numberParameter];
- return ctxParam?.Value as TProperty;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment