MediaTypeFormatter.GetDefaultValueForType Method (Type)
Gets the default value for the specified type.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
public static object GetDefaultValueForType(
Type type
)
public:
static Object^ GetDefaultValueForType(
Type^ type
)
static member GetDefaultValueForType :
type:Type -> Object
Public Shared Function GetDefaultValueForType (
type As Type
) As Object
Parameters
type
Type: System.TypeThe type for which to get the default value.
Return Value
Type: System.Object
The default value.
See Also
MediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top