Gets the value of the field from the IDataReader.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Overridable Function NullSafeGet ( _
	rs As IDataReader, _
	name As String _
) As Object
C#
public virtual Object NullSafeGet(
	IDataReader rs,
	string name
)
Visual C++
public:
virtual Object^ NullSafeGet(
	IDataReader^ rs, 
	String^ name
)
JavaScript
function nullSafeGet(rs, name);

Parameters

rs
Type: System.Data..::.IDataReader
The IDataReader positioned on the correct record.
name
Type: System..::.String
The name of the field to get the value from.

Return Value

The value of the field.

Remarks

This method checks to see if value is null, if it is then the null is returned from this method.

If the value is not null, then the method Get(IDataReader, Int32) is called and that method is responsible for retreiving the value.

See Also