Beispiel #1
0
 public static void Sub(this EmployeestructReflect i, EmployeestructReflect d, out EmployeestructReflect e, ref EmployeestructReflect a)
 {
     e        = d;
     e.Salary = 10000;
     a.Salary = i.Salary - d.Salary;
     LuaTestCommon.Log("e.name:" + e.Name + ", e.salary:" + e.Salary);
     LuaTestCommon.Log("a.name:" + a.Name + ", a.salary:" + a.Salary);
 }
Beispiel #2
0
 public static int Add(this EmployeestructReflect i, EmployeestructReflect d)
 {
     return(i.Salary * 12 + i.AnnualBonus + d.Salary * 12 + d.AnnualBonus);
 }
Beispiel #3
0
 public static void PrintSalary(this EmployeestructReflect i)
 {
     LuaTestCommon.Log("Salary:" + i.Salary);
 }
Beispiel #4
0
 public static int GetIncomeForOneYear(this EmployeestructReflect i)
 {
     return(i.Salary * 12 + i.AnnualBonus);
 }
 public static void PrintSalary(this EmployeestructReflect i)
 {
     Debug.Log("Salary:" + i.Salary);
 }