HashSet
<
any
>
A hash set of unique objects
Class
CompareDelegate
A type that represents a reference to a method with a parameter list and return type
CompareFieldDelegate
A type that represents a reference to a method with a parameter list and return type
FindDelegate
A type that represents a reference to a method with a parameter list and return type
Method
public
HashSet
.
Constructor
(
int
capacity
, []
values
=
null
)
public
bool
HashSet
.
Add
(
value
)
Add an element to the list, returns true if element is added
public
void
HashSet
.
AddEach
([]
values
)
Add each item in the list
public
void
HashSet
.
Clear
Remove all elements
public
virtual
int
object
.
Compare
(
value
)
Compares this object with another and returns (-1, 0, or 1)
public
bool
HashSet
.
Contains
(
value
)
Returns true if the element is present in the container
public
Attribute
HashSet
.
GetEachType
Get the iterated type
public
virtual
Icon
object
.
GetIcon
Return a icon for this object
public
virtual
object
.
GetLayoutBlock
Return a layout inside a block
public
virtual
object
.
GetLayoutSpan
Return a layout inside a span
public
virtual
object
.
GetLayoutTip
Return a layout for the hint popup
public
virtual
object
.
GetSourceReference
Return a source reference for this object
public
virtual
void
object
.
GetTexSource
(
source
)
LaTeX source code for this object
public
bool
HashSet
.
Remove
(
value
)
Remove an element, returns true if element is found and removed
public
[]
HashSet
.
ToArray
Returns the current values to an array
public
[]
HashSet
.
ToSortedArray
(
bool
descending
=
false
,
delegate
int
CompareDelegate
(
v1
,
v2
)
comparedelegate
=
null
)
Returns a new array in sorted order
public
[]
HashSet
.
ToSortedArrayField
(
bool
descending
,
delegate
CompareFieldDelegate
(
value
)
comparedelegatefield
)
Returns a new array in sorted order