コード例 #1
0
 InvokeMember(string name, System.Reflection.BindingFlags invokeAttr,
              System.Reflection.Binder binder, object target, object[] args,
              System.Reflection.ParameterModifier[] modifiers,
              System.Globalization.CultureInfo culture, string[] namedParameters)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
        public static System.Reflection.PropertyInfo GetPropertyTSS(
            System.Type target,
            System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers)
        {
            //return target.GetProperty("Items", bindingAttr, binder, null, types, null);
            // return target.GetProperty(name, bindingAttr, binder, returnType, types, modifiers);
            Type type = typeof(propertyGetClass);

            System.Reflection.PropertyInfo propInfo = type.GetProperty("Property1");
            return(propInfo);
        }
コード例 #3
0
        public override object Invoke(System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture)
        {
            if (_meth == null)
            {
                throw new Exception("libsupcs.ConstructorInfo.Invoke: _meth is null");
            }
            if (_type == null)
            {
                throw new Exception("libsupcs.ConstructorInfo.Invoke: _type is null");
            }
            object obj = _type.Create();

            _meth.Invoke(obj, invokeAttr, binder, parameters, culture);
            return(obj);
        }
コード例 #4
0
        public static System.Reflection.PropertyInfo GetPropertyMSS(
            System.Type target,
            System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, name, bindingAttr, binder, returnType, types, modifiers }, out result))
            {
                return((System.Reflection.PropertyInfo)result);
            }
            else
            {
                return(target.GetProperty(name, bindingAttr, binder, returnType, types, modifiers));
            }
        }
コード例 #5
0
 public override object Invoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture)
 {
     throw new PlatformNotSupportedException();
 }
コード例 #6
0
ファイル: Activator.cs プロジェクト: xwyangjshb/mono
 public static object CreateInstance(System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes)
 {
     throw null;
 }
コード例 #7
0
 public virtual System.Reflection.PropertyInfo GetProperty(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
 }
コード例 #8
0
 public virtual object Invoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture)
 {
 }
コード例 #9
0
 public virtual object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args)
 {
 }
コード例 #10
0
 public object Invoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, Object[] parameters, System.Globalization.CultureInfo culture)
 {
     return(default(object));
 }
コード例 #11
0
 public override object Invoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture)
 {
     throw null;
 }
コード例 #12
0
 /// <summary>
 /// When overridden in a derived class, searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
 /// </summary>
 /// <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.-or- Zero, to return null.</param>
 /// <param name="binder">An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.-or- A null reference (Nothing in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" />.</param>
 /// <param name="callConvention">The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and the stack is cleaned up.</param>
 /// <param name="types">An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the constructor to get.-or- An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a constructor that takes no parameters.</param>
 /// <param name="modifiers">An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.</param>
 /// <returns>A <see cref="T:System.Reflection.ConstructorInfo" /> object representing the constructor that matches the specified requirements, if found; otherwise, null.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 protected override System.Reflection.ConstructorInfo GetConstructorImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
     throw new NotImplementedException();
 }
コード例 #13
0
 public object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, Object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, String[] namedParameters)
 {
     return(default(object));
 }
コード例 #14
0
 public static object CreateDomainObject(Type type, System.Boolean ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes)
 {
     return(type.Assembly.CreateInstance(type.FullName, ignoreCase, bindingAttr, binder, args, culture, activationAttributes));
 }
コード例 #15
0
 public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
 }
コード例 #16
0
        public static System.Runtime.Remoting.ObjectHandle CreateInstance(AppDomain domain, string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Object[] args, System.Globalization.CultureInfo culture, Object[] activationAttributes, System.Security.Policy.Evidence securityAttributes)
        {
            Contract.Requires(domain != null);
            Contract.Requires(assemblyName != null);
            Contract.Requires(typeName != null);

            Contract.Ensures(Contract.Result <System.Runtime.Remoting.ObjectHandle>() != null);

            return(default(System.Runtime.Remoting.ObjectHandle));
        }
コード例 #17
0
        public static System.Runtime.Remoting.ObjectHandle CreateInstance(AppDomain domain, string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Object[] args, System.Globalization.CultureInfo culture, Object[] activationAttributes)
        {
            Contract.Ensures(args.Length >= 0);
            Contract.Ensures(activationAttributes.Length >= 0);

            return(default(System.Runtime.Remoting.ObjectHandle));
        }
コード例 #18
0
        static int _m_CreateInstance_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1 && translator.Assignable <System.Type>(L, 1))
                {
                    System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));

                    var gen_ret = System.Activator.CreateInstance(_type);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 1 && translator.Assignable <System.ActivationContext>(L, 1))
                {
                    System.ActivationContext _activationContext = (System.ActivationContext)translator.GetObject(L, 1, typeof(System.ActivationContext));

                    var gen_ret = System.Activator.CreateInstance(_activationContext);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Type>(L, 1) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    System.Type _type      = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
                    bool        _nonPublic = LuaAPI.lua_toboolean(L, 2);

                    var gen_ret = System.Activator.CreateInstance(_type, _nonPublic);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count >= 1 && translator.Assignable <System.Type>(L, 1) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable <object>(L, 2)))
                {
                    System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
                    object[]    _args = translator.GetParams <object>(L, 2);

                    var gen_ret = System.Activator.CreateInstance(_type, _args);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _assemblyName = LuaAPI.lua_tostring(L, 1);
                    string _typeName     = LuaAPI.lua_tostring(L, 2);

                    var gen_ret = System.Activator.CreateInstance(_assemblyName, _typeName);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.ActivationContext>(L, 1) && translator.Assignable <string[]>(L, 2))
                {
                    System.ActivationContext _activationContext = (System.ActivationContext)translator.GetObject(L, 1, typeof(System.ActivationContext));
                    string[] _activationCustomData = (string[])translator.GetObject(L, 2, typeof(string[]));

                    var gen_ret = System.Activator.CreateInstance(_activationContext, _activationCustomData);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <System.Type>(L, 1) && translator.Assignable <object[]>(L, 2) && translator.Assignable <object[]>(L, 3))
                {
                    System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
                    object[]    _args = (object[])translator.GetObject(L, 2, typeof(object[]));
                    object[]    _activationAttributes = (object[])translator.GetObject(L, 3, typeof(object[]));

                    var gen_ret = System.Activator.CreateInstance(_type, _args, _activationAttributes);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object[]>(L, 3))
                {
                    string   _assemblyName         = LuaAPI.lua_tostring(L, 1);
                    string   _typeName             = LuaAPI.lua_tostring(L, 2);
                    object[] _activationAttributes = (object[])translator.GetObject(L, 3, typeof(object[]));

                    var gen_ret = System.Activator.CreateInstance(_assemblyName, _typeName, _activationAttributes);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && translator.Assignable <System.AppDomain>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    System.AppDomain _domain       = (System.AppDomain)translator.GetObject(L, 1, typeof(System.AppDomain));
                    string           _assemblyName = LuaAPI.lua_tostring(L, 2);
                    string           _typeName     = LuaAPI.lua_tostring(L, 3);

                    var gen_ret = System.Activator.CreateInstance(_domain, _assemblyName, _typeName);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 5 && translator.Assignable <System.Type>(L, 1) && translator.Assignable <System.Reflection.BindingFlags>(L, 2) && translator.Assignable <System.Reflection.Binder>(L, 3) && translator.Assignable <object[]>(L, 4) && translator.Assignable <System.Globalization.CultureInfo>(L, 5))
                {
                    System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
                    System.Reflection.BindingFlags _bindingAttr; translator.Get(L, 2, out _bindingAttr);
                    System.Reflection.Binder       _binder = (System.Reflection.Binder)translator.GetObject(L, 3, typeof(System.Reflection.Binder));
                    object[] _args = (object[])translator.GetObject(L, 4, typeof(object[]));
                    System.Globalization.CultureInfo _culture = (System.Globalization.CultureInfo)translator.GetObject(L, 5, typeof(System.Globalization.CultureInfo));

                    var gen_ret = System.Activator.CreateInstance(_type, _bindingAttr, _binder, _args, _culture);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 6 && translator.Assignable <System.Type>(L, 1) && translator.Assignable <System.Reflection.BindingFlags>(L, 2) && translator.Assignable <System.Reflection.Binder>(L, 3) && translator.Assignable <object[]>(L, 4) && translator.Assignable <System.Globalization.CultureInfo>(L, 5) && translator.Assignable <object[]>(L, 6))
                {
                    System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
                    System.Reflection.BindingFlags _bindingAttr; translator.Get(L, 2, out _bindingAttr);
                    System.Reflection.Binder       _binder = (System.Reflection.Binder)translator.GetObject(L, 3, typeof(System.Reflection.Binder));
                    object[] _args = (object[])translator.GetObject(L, 4, typeof(object[]));
                    System.Globalization.CultureInfo _culture = (System.Globalization.CultureInfo)translator.GetObject(L, 5, typeof(System.Globalization.CultureInfo));
                    object[] _activationAttributes            = (object[])translator.GetObject(L, 6, typeof(object[]));

                    var gen_ret = System.Activator.CreateInstance(_type, _bindingAttr, _binder, _args, _culture, _activationAttributes);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 8 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && translator.Assignable <System.Reflection.BindingFlags>(L, 4) && translator.Assignable <System.Reflection.Binder>(L, 5) && translator.Assignable <object[]>(L, 6) && translator.Assignable <System.Globalization.CultureInfo>(L, 7) && translator.Assignable <object[]>(L, 8))
                {
                    string _assemblyName = LuaAPI.lua_tostring(L, 1);
                    string _typeName     = LuaAPI.lua_tostring(L, 2);
                    bool   _ignoreCase   = LuaAPI.lua_toboolean(L, 3);
                    System.Reflection.BindingFlags _bindingAttr; translator.Get(L, 4, out _bindingAttr);
                    System.Reflection.Binder       _binder = (System.Reflection.Binder)translator.GetObject(L, 5, typeof(System.Reflection.Binder));
                    object[] _args = (object[])translator.GetObject(L, 6, typeof(object[]));
                    System.Globalization.CultureInfo _culture = (System.Globalization.CultureInfo)translator.GetObject(L, 7, typeof(System.Globalization.CultureInfo));
                    object[] _activationAttributes            = (object[])translator.GetObject(L, 8, typeof(object[]));

                    var gen_ret = System.Activator.CreateInstance(_assemblyName, _typeName, _ignoreCase, _bindingAttr, _binder, _args, _culture, _activationAttributes);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 9 && translator.Assignable <System.AppDomain>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && translator.Assignable <System.Reflection.BindingFlags>(L, 5) && translator.Assignable <System.Reflection.Binder>(L, 6) && translator.Assignable <object[]>(L, 7) && translator.Assignable <System.Globalization.CultureInfo>(L, 8) && translator.Assignable <object[]>(L, 9))
                {
                    System.AppDomain _domain       = (System.AppDomain)translator.GetObject(L, 1, typeof(System.AppDomain));
                    string           _assemblyName = LuaAPI.lua_tostring(L, 2);
                    string           _typeName     = LuaAPI.lua_tostring(L, 3);
                    bool             _ignoreCase   = LuaAPI.lua_toboolean(L, 4);
                    System.Reflection.BindingFlags _bindingAttr; translator.Get(L, 5, out _bindingAttr);
                    System.Reflection.Binder       _binder = (System.Reflection.Binder)translator.GetObject(L, 6, typeof(System.Reflection.Binder));
                    object[] _args = (object[])translator.GetObject(L, 7, typeof(object[]));
                    System.Globalization.CultureInfo _culture = (System.Globalization.CultureInfo)translator.GetObject(L, 8, typeof(System.Globalization.CultureInfo));
                    object[] _activationAttributes            = (object[])translator.GetObject(L, 9, typeof(object[]));

                    var gen_ret = System.Activator.CreateInstance(_domain, _assemblyName, _typeName, _ignoreCase, _bindingAttr, _binder, _args, _culture, _activationAttributes);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to System.Activator.CreateInstance!"));
        }
コード例 #19
0
 public virtual object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args, System.Globalization.CultureInfo culture)
 {
 }
コード例 #20
0
 protected override System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
     throw new PlatformNotSupportedException();
 }
コード例 #21
0
 public virtual System.Reflection.ConstructorInfo GetConstructor(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
 }
コード例 #22
0
 protected override System.Reflection.PropertyInfo GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
     throw new PlatformNotSupportedException();
 }
コード例 #23
0
 public virtual System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers)
 {
 }
コード例 #24
0
 public override object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters)
 {
     throw new PlatformNotSupportedException();
 }
コード例 #25
0
 public virtual object InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object target, object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo locale, string[] namedParameters)
 {
 }
コード例 #26
0
        public static Object CreateInstance(Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Object[] args, System.Globalization.CultureInfo culture)
        {
            Contract.Requires(type != null);

            Contract.Ensures(Contract.Result <object>() != null);

            return(default(Object));
        }
コード例 #27
0
ファイル: Activator.cs プロジェクト: xwyangjshb/mono
 public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes)
 {
     throw null;
 }
コード例 #28
0
        public static Object CreateInstance(Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Object[] args, System.Globalization.CultureInfo culture, Object[] activationAttributes)
        {
            Contract.Requires(type != null);
            Contract.Ensures(Contract.Result <object>() != null);
//      Contract.Ensures(Contract.Result<object>() != null || type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>));

            return(default(Object));
        }
コード例 #29
0
 public override void SetValue(object obj, object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] index, CultureInfo culture)
 {
     throw new NotImplementedException();
 }
コード例 #30
0
        public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Object[] args, System.Globalization.CultureInfo culture, Object[] activationAttributes)
        {
            Contract.Requires(assemblyFile != null);
            Contract.Requires(typeName != null);
            Contract.Ensures(Contract.Result <ObjectHandle>() != null);

            return(default(System.Runtime.Remoting.ObjectHandle));
        }