コード例 #1
0
        public override Type[] GetInterfaces()
        {
            var ifaces = Array.FromJsArray <constructor>(ctor.Interfaces);
            var result = new Type[ifaces.Length];

            for (var i = 0; i < ifaces.Length; i++)
            {
                result[i] = GetInstance(ifaces[i]);
            }

            return(result);
        }
コード例 #2
0
        public override Type[] GetGenericArguments()
        {
            var gargs  = Array.FromJsArray <constructor>(Marshal.ObjectLookup(ctor.GenericArguments, (string)ctor.MetadataName));
            var result = new Type[gargs.Length];

            for (var i = 0; i < gargs.Length; i++)
            {
                result[i] = GetInstance(gargs[i]);
            }

            return(result);
        }