Created
December 6, 2012 06:55
-
-
Save codereflection/4222309 to your computer and use it in GitHub Desktop.
Fake out that ToList!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dynamic cutRuleParameters = new ExpandoObject(); | |
cutRuleParameters.ToList = (Func<List<CutRuleParameterViewModel>>)(() => | |
new List<CutRuleParameterViewModel> { | |
new CutRuleParameterViewModel { ParamId = 77, IsDynamic = 'Y' , UIParamCode = "MedianRounding", ParamName = "MedianRounding" , ParamValue = "5000", ParamCode = "MedianRounding" }, | |
new CutRuleParameterViewModel { ParamId = 78, ParamName = "Rounding Direction", IsDynamic = 'Y' , UIParamCode = "RoundDirection", ParamCode = "RoundingDir" } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment