InputFormatter.GetDefaultValueForType(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the default value for a given type. Used to return a default value when the body contains no content.
protected:
virtual System::Object ^ GetDefaultValueForType(Type ^ modelType);
protected virtual object GetDefaultValueForType(Type modelType);
protected virtual object? GetDefaultValueForType(Type modelType);
abstract member GetDefaultValueForType : Type -> obj
override this.GetDefaultValueForType : Type -> obj
Protected Overridable Function GetDefaultValueForType (modelType As Type) As Object
Parameters
- modelType
- Type
The type of the value.
Returns
The default value for the modelType
type.