csf-dev / CSF.Reflection

MIT License
0 stars 0 forks source link

Add GetDefaultValue method #3

Closed craigfowler closed 7 years ago

craigfowler commented 7 years ago

This method takes a Type and returns the default value for that type. It's essentially equivalent to default(T) except that it operates on a type instance and not a named type, this it is evaluated at runtime.