c# - How to filter generic class for shim? -
i have generic class similar following
public class helperclass<t> t : dbtable, new() { }
i have shim class when compile code, warning. have added following line in .fakes
<pre lang="c#"><add fullname="a.b.helperclass" /></pre>
when set diagnostics = true, trying shim classes helperclass'1
how can apply filter in scenario?
use following generate shims versions of generic type.
<shimgeneration> </clear> <add typename="helperclass`1"/> </shimgeneration>
if happen have non-generic class of same name, above not generate shims it. if wish generate them both, you'll need use following.
<shimgeneration> </clear> <add typename="helperclass"/> </shimgeneration>
lastly, if wish generate shims non-generic you'll need use following.
<shimgeneration> </clear> <add typename="helperclass!"/> </shimgeneration>
i don't believe can generate shims select versions of generic class. if hoping generate shimhelperclass not shimhelperclass, believe out of luck.
Comments
Post a Comment