CSharpTest.Net
Ceiling Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > OrdinalList Class : Ceiling Property

Glossary Item Box

Gets or sets the maximum inclusive ordinal that can be stored in the memory currently allocated, ranges from -1 to int.MaxValue

Syntax

Visual Basic (Declaration) 
Public Property Ceiling As Integer
C# 
public int Ceiling {get; set;}

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