asp.net.ph

Array.Initialize Method

System Namespace   Array Class


Initializes every element of the value-type Array by calling the default constructor of the value type.

[ VB ]
<Serializable>
Public Sub Initialize ( )

[ C# ]
[Serializable]
public void Initialize ( );

[ C++ ]
[Serializable]
public: void Initialize ( );

[JScript ]
public Serializable
function Initialize ( );

Remarks

This method is designed to help compilers support value-type arrays; most users do not need this method. It must not be used on reference-type arrays.

If the Array is not a value-type Array or if the value type does not have a default constructor, the Array is not modified.

The value-type Array can have any lower bound and any number of dimensions.

CAUTION: You can use this method only on value types that have constructors; however, value types that are native to C# do not have constructors.

See Also

Array Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph