예제 #1
0
        //-------------------------------------------------------------------------------------------------------------------------------------------------

        public MethodDecorationBuilder OnAdd()
        {
            if (m_OnAdd == null)
            {
                m_OnAdd = new DecoratingMethodWriter(m_OwnerEvent.AddMethod).DecorationBuilder;
            }

            return(m_OnAdd);
        }
예제 #2
0
        //-------------------------------------------------------------------------------------------------------------------------------------------------

        public MethodDecorationBuilder OnRemove()
        {
            if (m_OnRemove == null)
            {
                m_OnRemove = new DecoratingMethodWriter(m_OwnerEvent.RemoveMethod).DecorationBuilder;
            }

            return(m_OnRemove);
        }
예제 #3
0
        //-------------------------------------------------------------------------------------------------------------------------------------------------

        public MethodDecorationBuilder Setter()
        {
            if (m_Setter == null)
            {
                var setterMethod = m_OwnerProperty.SetterMethod;
                m_Setter = new DecoratingMethodWriter(setterMethod).DecorationBuilder;
            }

            return(m_Setter);
        }
예제 #4
0
        //-------------------------------------------------------------------------------------------------------------------------------------------------

        internal PropertyDecorationBuilder(PropertyMember ownerProperty)
        {
            m_OwnerProperty = ownerProperty;
            m_Getter        = null;
            m_Setter        = null;
        }
예제 #5
0
        //-------------------------------------------------------------------------------------------------------------------------------------------------

        internal EventDecorationBuilder(EventMember ownerEvent)
        {
            m_OwnerEvent = ownerEvent;
            m_OnAdd      = null;
            m_OnRemove   = null;
        }