using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class TestClass { private string MyName; private string Conn; private int MyNumber; public TestClass() { } public TestClass(string myName) : this(myName, "", 0) { } public TestClass(string connectionString) : this("", connectionString, 0) { } public TestClass(int myNumber) : this("", "", myNumber) { } public TestClass(string myName, string connectionString, int myNumber) { MyName = myName; Conn = connectionString; MyNumber = myNumber; } } }
You can not use Two Methods with " Same Signature " like this: " Signature is the name and parameter list of Method "
public void Add(int i) { } public void Add(int j) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)