c# constructor call another constructor code example
Example 1: C# call constructor within another
public Sample(string str) : this(int.Parse(str)) { }
Example 2: c# constructor call another constructor
public ClassName(string str, int number) : this(str) { }
Example 3: c# constructor call another constructor
public Sample(string str) : this(int.Parse(str)) { }