length Summary Represents the number of arguments the function expects. Usage public property double length() Returns The number of arguments the function expects. Description Represents the number of arguments the function expects. Examples Basic Usage 12345678910import System; void() f1 = void() { };Console.log(f1.length); // 0 void(int, int) f2 = void(int a, int b) { };Console.log(f2.length); // 2 void(string, ...int, string) f3 = void foo(string a, ...int b, string c) { };Console.log(f3.length); // Infinity Share HTML | BBCode | Direct Link