Platforms to show: All Mac Windows Linux Cross-Platform

Back to AtomicDictionaryMBS class.

AtomicDictionaryMBS.BinCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Atomic MBS Util Plugin 26.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of bins the hash table uses. This is a measure of the hash table size, independent of the number of items the Dictionary contains.
Example
Var a As New AtomicDictionaryMBS
Var b As Integer = a.BinCount
Break // See initial bincount in b, e.g. 61

(Read only property)

AtomicDictionaryMBS.Clone as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Atomic MBS Util Plugin 26.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a copy of the contents of the Dictionary allowing it to be manipulated independently of the original.
Example
Var a As New AtomicDictionaryMBS
a.Value(1) = 2
a.Value(2) = 3
Var d As Dictionary = a.Clone
Break // inspect clone in debugger

Because any Dictionary items that are objects are really just references to the object, while the references themselves are duplicated, the objects they reference are not. Changing an object in one will change it in the other.

Great to view entries in Xojo debugger.
(Read only property)

AtomicDictionaryMBS.KeyCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Atomic MBS Util Plugin 26.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of key-value pairs in the Dictionary.
Example
Var a As New AtomicDictionaryMBS

a.Value("Hello") = 1
MessageBox a.KeyCount.ToString

a.Value("World") = 2
MessageBox a.KeyCount.ToString

(Read only property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...