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

Object

The default value for the modelType type.

Applies to