1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Wrapper Class
public class Wrapper
{
[UnsafeAccessor(UnsafeAccessorKind.Method, Name="MyMethod")]
public static extern string GetMyMethod(MyClass myclass);
[UnsafeAccessor(UnsafeAccessorKind.Fied, Name="_myField")]
public static extern string GetMyField(MyClass myclass);
[UnsafeAccessor(UnsafeAccessorKind.Property, Name="getMyProperty")]
public static extern string GetMyProperty(MyClass myclass);
}
|