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
1
2
3
4
5
6
7
8
9
10
import 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