J
James Maeding
In VS 2008, C#, I typically make a field:
private double _myDbl = 0.0;
then highlight _myDbl and refactor to encapsulate field as property "MyDbl".
I wish I could do some kind of snippet that would let me give field name and it would give property code automatically.
The other thing is the refactor step always throws code right under field code.
It would be nice if i could have it put the code down in my Properties region of code.
This might be handled better by a class wizard dialog of some kind. The ones in VS do not seem to help in these areas.
I'm looking for free built-in solutions first, then pay apps if that is only way. I'm new enough to C# that I don't
know what seasoned programmers look to. Any advice appreciated.
private double _myDbl = 0.0;
then highlight _myDbl and refactor to encapsulate field as property "MyDbl".
I wish I could do some kind of snippet that would let me give field name and it would give property code automatically.
The other thing is the refactor step always throws code right under field code.
It would be nice if i could have it put the code down in my Properties region of code.
This might be handled better by a class wizard dialog of some kind. The ones in VS do not seem to help in these areas.
I'm looking for free built-in solutions first, then pay apps if that is only way. I'm new enough to C# that I don't
know what seasoned programmers look to. Any advice appreciated.