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