Beispiel #1
0
 public static void Say(IntPtr person, string what)
 {
     if (IntPtr.Size == 8)
     {
         PersonNativesX64.Say(person, what);
     }
     else
     {
         PersonNativesX86.Say(person, what);
     }
 }
Beispiel #2
0
 public static void SetAge(IntPtr person, int age)
 {
     if (IntPtr.Size == 8)
     {
         PersonNativesX64.SetAge(person, age);
     }
     else
     {
         PersonNativesX86.SetAge(person, age);
     }
 }
Beispiel #3
0
 public static void SetName(IntPtr person, string name)
 {
     if (IntPtr.Size == 8)
     {
         PersonNativesX64.SetName(person, name);
     }
     else
     {
         PersonNativesX86.SetName(person, name);
     }
 }
Beispiel #4
0
 public static void Delete(IntPtr person)
 {
     if (IntPtr.Size == 8)
     {
         PersonNativesX64.Delete(person);
     }
     else
     {
         PersonNativesX86.Delete(person);
     }
 }
Beispiel #5
0
 public static string GetArch()
 {
     return(IntPtr.Size == 8 ? PersonNativesX64.GetArch()
         : PersonNativesX86.GetArch());
 }
Beispiel #6
0
 static public int GetAge(IntPtr person)
 {
     return(IntPtr.Size == 8 ? PersonNativesX64.GetAge(person)
         : PersonNativesX86.GetAge(person));
 }
Beispiel #7
0
 static public IntPtr GetName(IntPtr person)
 {
     return(IntPtr.Size == 8 ? PersonNativesX64.GetName(person)
         : PersonNativesX86.GetName(person));
 }
Beispiel #8
0
 public static IntPtr New(string name = "", int age = 0)
 {
     return(IntPtr.Size == 8 ? PersonNativesX64.New(name, age)
         : PersonNativesX86.New(name, age));
 }