I will only know the type at runtime.
Public Shared Function DefaultValue(Type As System.Type) As Object
'???
End Function
Can anyone fill in the function? thank you!
EDIT: After the answer and more discussion, I have learned you can just do:
MyExpression = Nothing
to determine if the expression contains the default value for its type. Having the shared function in my library might help me remember this about the language but otherwise the function is not necessary. Thanks to Dave for pointing this out.