dynamic-keyword Questions
16
Solved
My situation is very simple. Somewhere in my code I have this:
dynamic myVariable = GetDataThatLooksVerySimilarButNotTheSame();
//How to do this?
if (myVariable.MyProperty.Exists)
//Do stuff
S...
Colostomy asked 8/6, 2010 at 15:49
2
Solved
Inside an F# monad, if you say let!, the compiler translates that to a Bind member that you've defined on the monad builder.
Now I see there are Query monads, as shown here on MSDN, where you can ...
Kahle asked 14/2, 2012 at 5:44
3
Solved
I would like to write something similar to the following:
// I will pass in a number of "properties" specified as strings that I want modified
string[] properties = new [] { "AllowEdit", "AllowDel...
Emplacement asked 6/5, 2010 at 18:35
1
I'm working on a CSharp expression evaluator which can be used as you can see below. This component generates code and compiles it in memory and after that, it loads the generated assembly, creates...
Agnosia asked 21/2, 2011 at 15:23
3
Solved
Could you give me some reasons for limitations of the dynamic type in C#? I read about them in "Pro C# 2010 and the .NET 4 platform". Here is an excerpt (if quoting books is illegal here, tell me a...
Dartboard asked 28/8, 2010 at 0:40
1
Solved
I am trying to learn all the new goodies that come with C# 4.0. I am failing to understand the differences between the DynamicObject and ExpandoObject types. It seems like DynamicObject is used e.g...
Mullein asked 22/8, 2010 at 4:32
5
Solved
Is there any way to disable the use of the "dynamic" keyword in .net 4?
I thought the Code Analysis feature of VS2010 might have a rule to fail the build if the dynamic keyword is used but I coul...
Nidanidaros asked 7/5, 2010 at 20:17
1
© 2022 - 2025 — McMap. All rights reserved.