Exemplo n.º 1
0
        protected BaseMightyMember(MightyContext context)
        {
            ID      = ReferencesUtilities.GetUniqueID(this);
            Context = context;

            WrappersInfo = new List <MightyWrapperInfo>();
        }
Exemplo n.º 2
0
        public object DrawField(FieldInfo fieldInfo, Object context, object value, CustomDrawerAttribute attribute)
        {
            if (!GetDrawerForMember(ReferencesUtilities.GetUniqueID(fieldInfo), m_fieldCallback, out var drawerMethod))
            {
                m_customDrawerCache[ReferencesUtilities.GetUniqueID(fieldInfo), m_fieldCallback] =
                    MemberUtilities.GetMightyMethod <object>(context, attribute.DrawerCallback, m_fieldCallback);
            }

            return(InvokeDrawer(drawerMethod, $"object {attribute.DrawerCallback}(string label, object value)",
                                fieldInfo.Name.GetPrettyName(), value));
        }