[Mono-list] Constructors in C#

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


Tom Shelton wrote:
> public class MyClass
> {
> 	private string member;
> 
> 	public MyClass () : this ("stuff") {}
> 
> 	public MyClass (string s)
> 	{
> 		this.member = s;
> 	}
> }
> 
> HTH
> Tom Shelton
> 
well, in this very case, I cannot do that way, since I've got some 
validity checks to do before calling the other constructor.

-- 
Brice Carpentier aka Br|ce