Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. private readonly MyType sth;
  2.  
  3. public MyClass(MyType sth) //class constructor
  4. {
  5. this.sth = sth;
  6. }
  7.  
  8. public MyType Sth
  9. {
  10. get { return sth; }
  11. }
  12.  
  13. private readonly $MyType$ $FieldName$;
  14.  
  15. public $ClassName$($MyType$ $FieldName$) //class constructor
  16. {
  17. this.$FieldName$ = $FieldName$;
  18. }
  19.  
  20. public $MyType$ $PropName$
  21. {
  22. get { return $FieldName$; }
  23. }
  24.  
  25. public readonly MyType Sth {get; private set;}
  26.  
  27. public MyClass(MyType sth)
  28. {
  29. Sth = sth;
  30. }
  31.  
  32. public $TYPE$ $NAME$ { get; private set; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement