Here is a sample code:
return new[] { new { Name = "Fixed Value", ViewModel = (object) new B_FixedValue_EditViewModel() } , new { Name = "Fixed List", ViewModel = null as object} , new { Name = "Calculation on one value", ViewModel = null as object } , new { Name = "Calculation on two values", ViewModel = null as object } , new { Name = "Loading a value from database", ViewModel = null as object } , new { Name = "Conditional Value Provision", ViewModel = null as object} , };
ViewModel = (object)null
ReplyDelete