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 1234567import System; Dictionary<int> empty = {};Dictionary<int> notEmpty = { a: 10, b: 11, c: 12 }; Console.log(empty.length); // 0Console.log(notEmpty.length); // 3 Share HTML | BBCode | Direct Link