InputFormatter.GetDefaultValueForType(Type) InputFormatter.GetDefaultValueForType(Type) InputFormatter.GetDefaultValueForType(Type) Method

Definition

Gets the default value for a given type. Used to return a default value when the body contains no content.

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 Type Type

The type of the value.

Returns

The default value for the modelType type.

Applies to