[Mono-list] Constructors in C#

Brice Carpentier brice@daknet.org
Fri, 19 Nov 2004 20:36:32 +0100


Joe Audette wrote:
> ok,
>  
> How about this:
>  
> public class MyClass
> {
>  private string member;
>  public MyClass ()
>  {
>   DoStuff("stuff");
>  }
>  public MyClass (String s)
>  {
>   DoStuff(s);
>  }
>  
>  private void DoStuff(string s)
>  {
>   this.member = s;
>  
>  }
> }
>  
> Joe
I thought about this too, but I don't find it really clean, without 
having concret arguments against it.
I guess I'll do it if I can't find anything nearer to the "java && vb" way.

Regards,
-- 
Brice Carpentier aka Br|ce