Is it static, or is it dynamic? Nobody knows, it's Particle Man!
-
So apparently this is a valid method signature in C#:
static dynamic GetMyData()
(Yes, I know what static and dynamic mean in C#, I just thought it was funny... ;P )
Any kid will tell you that static is dynamic.
-
Any kid will tell you that static is dynamic.
-
-
So apparently this is a valid method signature in C#:
static dynamic GetMyData()
(Yes, I know what static and dynamic mean in C#, I just thought it was funny... ;P )
#define Schrodinger static dynamic
There. You're done.
Software Zen:
delete this;
-
-
So apparently this is a valid method signature in C#:
static dynamic GetMyData()
(Yes, I know what static and dynamic mean in C#, I just thought it was funny... ;P )
Truly strange, because in order to actually write a compilable version of this you are going to have write something like:
// note: tested only in new Visual Studio 2012 RC, in a WinForms C# Project
static dynamic GetMyData()
{
// note: also compiles if you just declare 'dyn as an 'int
// note: won't compile if 'dyn has no value assigned: assigning null to 'dyn will work.
// note: "return null;" as the only content in the method body also compiles
dynamic dyn = 100;return dyn;
}
It baffles me to try and imagine a use case for this ! best, Bill
"The greatest mystery is not that we have been flung at random between the profusion of matter and of the stars, but that within this prison we can draw from ourselves images powerful enough to deny our nothingness." Andre Malraux