Sets list item at position index to value. Expands the list by adding nullNothingnullptra null reference (Nothing in Visual Basic) values, if needed.

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

Syntax

Visual Basic (Declaration)
Public Shared Sub SafeSetValue ( _
	list As IList, _
	index As Integer, _
	value As Object _
)
C#
public static void SafeSetValue(
	IList list,
	int index,
	Object value
)
Visual C++
public:
static void SafeSetValue(
	IList^ list, 
	int index, 
	Object^ value
)
JavaScript
NHibernate.Util.ArrayHelper.safeSetValue = function(list, index, value);

Parameters

list
Type: System.Collections..::.IList
index
Type: System..::.Int32
value
Type: System..::.Object

See Also