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

        public ClassWriterBase DecorateWith <TDecorator>() where TDecorator : DecorationConvention, new()
        {
            var decorator        = new TDecorator();
            var decoratingWriter = new DecoratingClassWriter(m_OwnerClass, decorator);

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

        public ClassWriterBase DecorateWith(DecorationConvention decorator)
        {
            var decoratingWriter = new DecoratingClassWriter(m_OwnerClass, decorator);

            return(this);
        }