CodeDom generic type constraint

后端 未结 2 974
不思量自难忘°
不思量自难忘° 2021-02-20 00:06

Is there a way to generate a class constraint with CodeDom.

Because when I use something like

var method = new CodeMemberMethod();
var genericParam = new         


        
2条回答
  •  滥情空心
    2021-02-20 00:07

    I also use zero-width space ("\x200Bclass") instead of normal space. Then I replace it in final string with empty string: .Replace("\x200B", string.Empty);

提交回复
热议问题