c# - Default value of dynamic type? -
what default value of variable declared dynamic e.g. private dynamic banana;
?
can rely on default()
function when type determined @ runtime?
the reason need find default value declare dynamic member of class want set once (but not readonly
), use many times.
how check if dynamic variable has been set other default value without knowing runtime type be?
google came nothing on :s
thanks in advance.
it null
.
dynamic blah; console.write(blah); // crash console.write(blah.gettype()); // nullref
..is meant?
Comments
Post a Comment