public void registrationAllFunction(CSWC bin)
        {
            bin.SetNativeFunctionFactory(this);
            var it = regAutoCreateCodes(bin);

            while (it.MoveNext())
            {
            }
        }
Ejemplo n.º 2
0
        public System.Collections.IEnumerator registrationFunction(CSWC bin)
        {
            bin.SetNativeFunctionFactory(this);

            var method = this.GetType().GetMethod("regAutoCreateCodes", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

            if (method == null)
            {
                //The AS3 project-related code was not found.Please create the AS3 project first, or export the API in the AS3 project
                throw new InvalidOperationException("没有找到AS3项目相关代码。请先创建AS3项目,或在AS3项目中将API导出");
            }
            return((System.Collections.IEnumerator)method.Invoke(this, new object[] { bin }));

            //return regAutoCreateCodes(bin);
        }
        IEnumerator INativeFunctionRegister.registrationFunction(CSWC bin)
        {
            bin.SetNativeFunctionFactory(this);

            throw new NotImplementedException();
        }
Ejemplo n.º 4
0
 public void registrationFunction(CSWC bin)
 {
     bin.SetNativeFunctionFactory(this);
     regAutoCreateCodes(bin);
 }