Ejemplo n.º 1
0
        public static void *makeTypeFromName(IntPtr type_name)
        {
            var type      = Type.GetType(Marshal.PtrToStringUni(type_name));
            var container = new DotNetContainer(type);

            return(ToPointer(container));
        }
Ejemplo n.º 2
0
        public static void *makeTypedNullDotNetContainerFromType(void *type)
        {
            var container = FromPointer <DotNetContainer>(type);
            var result    = new DotNetContainer(null, container.Target as Type);

            return(ToPointer(result));
        }
Ejemplo n.º 3
0
        public static void *makeTypedNullDotNetContainer(IntPtr type_name)
        {
            var type   = Type.GetType(Marshal.PtrToStringUni(type_name));
            var result = new DotNetContainer(null, type);

            return(ToPointer(result));
        }
Ejemplo n.º 4
0
        public static void *copyDotNetContainer(void *ptr)
        {
            var original = FromPointer <DotNetContainer>(ptr);
            var copy     = new DotNetContainer(original.Target, original.Type);

            return(ToPointer(copy));;
        }
Ejemplo n.º 5
0
 private void Init(Object value, Type type, bool exception)
 {
     Result = new DotNetContainer(value, type);
     IsException = exception;
     IsVoid = false;
 }
Ejemplo n.º 6
0
 private void Init(Object value, Type type, bool exception)
 {
     Result      = new DotNetContainer(value, type);
     IsException = exception;
     IsVoid      = false;
 }