开发者

.net generate constructor based on fields .net

I'm producing very code using Identities Project to represent the objects, 开发者_运维技巧but it is some 1000 entities, and i need to know if exists some plugin or something .net free than produces auto contructor to each instance based on class fields.

Example

class Thing {
  public readonly string a;
  public readonly Object b;
}

// Generated
public Thing(string a, Object b){
  this.a = a;
  this.b = b;
}

apreciate the help thanks :)


ReSharper could help with this. But it sounds like some sort of code generation might be a better bet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜