2019-08-23 11:56:54 -07:00
|
|
|
namespace IDETest
|
|
|
|
{
|
|
|
|
class Methods
|
|
|
|
{
|
|
|
|
class ClassA
|
|
|
|
{
|
|
|
|
public int TEST_MethodA()
|
|
|
|
{
|
|
|
|
return 200;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int TEST_MethodB()
|
|
|
|
{
|
|
|
|
return 201;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*ClassA_MethodC
|
|
|
|
public int TEST_MethodC()
|
|
|
|
{
|
|
|
|
return 202;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static int TEST_StaticMethodA()
|
|
|
|
{
|
|
|
|
return 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static int TEST_StaticMethodB()
|
|
|
|
{
|
|
|
|
return 101;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*ClassA_StaticMethodC
|
|
|
|
public static int TEST_StaticMethodC()
|
|
|
|
{
|
|
|
|
return 102;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void DoTest()
|
|
|
|
{
|
|
|
|
/*DoTest_Body
|
|
|
|
ClassA ca = scope .();
|
|
|
|
ca.TEST_MethodB();
|
|
|
|
ca.TEST_MethodC();
|
|
|
|
ClassA.TEST_StaticMethodB();
|
|
|
|
ClassA.TEST_StaticMethodC();
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
2022-05-31 11:01:26 -07:00
|
|
|
enum EnumA
|
|
|
|
{
|
|
|
|
case A;
|
|
|
|
case B;
|
|
|
|
case C;
|
|
|
|
|
|
|
|
public const EnumA D = (EnumA)4;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int Test0(EnumA a, int b, int c = 1000)
|
|
|
|
{
|
|
|
|
return (int)a + (int)b + (int)c;
|
|
|
|
}
|
|
|
|
|
2019-08-23 11:56:54 -07:00
|
|
|
public static void Test()
|
|
|
|
{
|
|
|
|
//Test_Start
|
|
|
|
ClassA ca = scope .();
|
|
|
|
ca.TEST_MethodA();
|
|
|
|
ClassA.TEST_StaticMethodA();
|
|
|
|
DoTest();
|
2022-05-31 11:01:26 -07:00
|
|
|
Test0(.A, 1, 2);
|
2019-08-23 11:56:54 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|