Your Ad Here

Posted By

tclancy on 08/22/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


C#: Call Other Constructor


 / Published in: C#
 

I always forget the "this()" syntax.

  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  

You need to login to post a comment.