CSharpTest.Net
OrdinalList Constructor()
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > OrdinalList Class > OrdinalList Constructor : OrdinalList Constructor()

Glossary Item Box

Constructs an empty OrdinalList

Syntax

Visual Basic (Declaration) 
Public Function New()
C# 
public OrdinalList()

Example

Previously it was thought to be invalid to set a negative ceiling; however, since ceiling is an 'inclusive' value, the value of '0' actually requires 1 byte to be allocated. In order to allow explicitly clearing the array length, a -1 must be allowed;

Library/Library.Test/TestOrdinalList.cs

C#Copy Code
OrdinalList list = new OrdinalList();
list.Ceiling = -1;
Assert.AreEqual(-1, list.Ceiling);
VB.NETCopy Code
Dim list As New OrdinalList()
list.Ceiling = -1
Assert.AreEqual(-1, list.Ceiling)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys