code_junkie

In C#, is accessing the current object's properties through this.XYZ considered poor style compared to just XYZ

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public MyType(int arg)
  2. {
  3. this.arg = arg;
  4. }
  5.  
  6. public MyType(int arg)
  7. {
  8. _arg = arg;
  9. }
  10.  
  11. public Person (string name, string occupation)
  12. {
  13. this.name = name;
  14. this.occupation = occupation;
  15. }
Add Comment
Please, Sign In to add comment