Beispiel #1
0
        private void RegisterProperty(BindingFlags flags)
        {
            PropertyInfo[] propertys = registerType.GetProperties(flags);
            foreach (PropertyInfo p in propertys)
            {
                if (p.IsDefined(typeof(ObsoleteAttribute), true))
                {
                    continue;
                }
                if (!CSToLuaRegisterManager.GetInstance().IsPropertyOrFieldExport(registerType.FullName, p.Name))
                {
                    continue;
                }

                if (p.GetIndexParameters().Length > 0)
                {
                    continue;
                }

                registerList.Add(new CSToLuaPropertyRegister(this, p));
            }
        }