C#: Call Other Constructor


/ Published in: C#
Save to your folder(s)

I always forget the "this()" syntax.


Copy this code and paste it in your HTML
  1. class foo
  2. {
  3. public foo(){}
  4. public foo(string s ) { }
  5. public foo (string s1, string s2) : this(s1) {....}
  6.  
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.