I define an interface and a class like this:
interface ITextBox
{
double Left { get; set; }
}
class TimeTextBox : ITextBox
{
public TimeTextBox(ITextBox d)
{
Left = d.Left;
}
public double Left { get; set; }
}
I want to create an instance of this class like this:
ITextBox s;
s.Left = 12;
TimeTextBox T = new TimeTextBox(s);
But this error occure:
Use of unassigned local variable 's'