ObjectMaterializer<TDataReader>.ErrorAssignmentToNull Method (Type)

 

This API supports the product 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
Available since 3.5
Return to top
Show: