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.NET | Copy Code |
---|---|
Dim list As New OrdinalList() list.Ceiling = -1 Assert.AreEqual(-1, list.Ceiling) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
OrdinalList ClassOrdinalList Members