Export (0) Print
Expand All

ObjectMaterializer<TDataReader>.ErrorAssignmentToNull Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns an exception that indicates that a null value was tried to be assigned to a non-nullable value type.

Namespace:  System.Data.Linq.SqlClient.Implementation
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public static Exception ErrorAssignmentToNull(
	Type type
)

Parameters

type
Type: System.Type

The type to which a null value was attempted to be assigned.

Return Value

Type: System.Exception
An exception that indicates that a null value was attempted to be assigned to a non-nullable value type.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft