Example #1
0
        public void Generate()
        {
            if (_setMethod != null)
            {
                _setMethod.Generate();
                _builder.SetSetMethod(_setMethod.MethodBuilder);
            }

            if (_getMethod != null)
            {
                _getMethod.Generate();
                _builder.SetGetMethod(_getMethod.MethodBuilder);
            }
        }
Example #2
0
        public void Generate()
        {
            if (m_addOnMethod != null)
            {
                m_addOnMethod.Generate();
                m_builder.SetAddOnMethod(m_addOnMethod.MethodBuilder);
            }

            if (m_removeOnMethod != null)
            {
                m_removeOnMethod.Generate();
                m_builder.SetRemoveOnMethod(m_removeOnMethod.MethodBuilder);
            }
        }