2019-08-23 11:56:54 -07:00
|
|
|
using System;
|
|
|
|
namespace LibA
|
|
|
|
{
|
|
|
|
class LibA0
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class LibClassA
|
|
|
|
{
|
|
|
|
public int32 mA = GetVal(7, "LibA.LibClassA.mA");
|
|
|
|
|
|
|
|
public this()
|
|
|
|
{
|
|
|
|
PrintF("LibA.LibClassA()\n");
|
|
|
|
mA += 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
public this(int32 a)
|
|
|
|
{
|
|
|
|
mA += a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static int32 GetVal(int32 val, String str)
|
|
|
|
{
|
|
|
|
PrintF("GetVal: %s\n", str.CStr());
|
|
|
|
return val;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int GetVal2()
|
|
|
|
{
|
|
|
|
return 9;
|
|
|
|
}
|
2019-11-30 13:18:07 -08:00
|
|
|
|
|
|
|
public static int GetVal3(Object obj)
|
|
|
|
{
|
|
|
|
return 30;
|
|
|
|
}
|
2019-08-23 11:56:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
class LibClassB
|
|
|
|
{
|
2019-11-30 13:18:07 -08:00
|
|
|
public static int DoGetVal3<T>(T val)
|
|
|
|
{
|
|
|
|
return LibClassA.GetVal3(val);
|
|
|
|
}
|
2019-08-23 11:56:54 -07:00
|
|
|
}
|