i have interface method marked obsolete attribute. attributes error parameter set true throw exception when used. problem causes stub not generate whole class. when alter value false stub generates expected.
i’m looking way generate stub while retaining error parameter true.
public interface icar { void start(); [obsolete("this obsolete stop, stop using it", true)] void stop(); }
i’ve tried different permutations of.
<moles xmlns="http://schemas.microsoft.com/moles/2010/"> <assembly name="my.car.services"/> <stubgeneration> <typefilter typename="icar" skipobsolete="true" /> </stubgeneration> </moles>
this design. when method marked @ obsolete(..., true), c# not allow instantiate class implementing interface.
Comments
Post a Comment