length

Summary

Returns the number of keys in the dictionary.

Usage

public property int length()

Returns

The number of keys in the dictionary.

Description

Returns the number of keys in the dictionary.

Examples

Basic Usage
1
2
3
4
5
6
7
import System;
 
Dictionary<int> empty = {};
Dictionary<int> notEmpty = { a: 10, b: 11, c: 12 };
 
Console.log(empty.length);    // 0
Console.log(notEmpty.length); // 3

Share

HTML | BBCode | Direct Link