/
Arguments.cs
57 lines (50 loc) · 1.53 KB
/
Arguments.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Arguments.cs
// Script#/Libraries/CoreLib
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System.Collections;
using System.Runtime.CompilerServices;
namespace System {
/// <summary>
/// Provides access to the arguments of the current function.
/// </summary>
[IgnoreNamespace]
[Imported]
[ScriptName("arguments")]
public static class Arguments {
/// <summary>
/// Retrieves the arguments list.
/// </summary>
/// <returns>The arguments list.</returns>
[ScriptAlias("arguments")]
[IntrinsicProperty]
public static object[] Current {
get {
return null;
}
}
/// <summary>
/// Retrieves the number of actual arguments passed to the function.
/// </summary>
/// <returns>The count of arguments.</returns>
[IntrinsicProperty]
public static int Length {
get {
return 0;
}
}
/// <summary>
/// Retrieves the specified actual argument value passed to the
/// function by index.
/// </summary>
/// <param name="index">The index of the argument to retrieve.</param>
/// <returns>The value of the specified argument.</returns>
public static object GetArgument(int index) {
return null;
}
[ScriptAlias("Array.toArray")]
public static Array ToArray() {
return null;
}
}
}