I am getting error 'cannot convert null to Sample
struct Sample
{
private T inputValue;
public T Value
{
get
{
return inputValue;
}
}
public static implicit operator Sample
{
return new Sample
}
public Sample(T value)
{
inputValue = value;
}
}
static void Main(string[] args)
{
Sample
}
Shweta LodhaPosted Jun 18, 2014, 1:33 PM
By default it is initialized to zero
Shweta LodhaPosted Jun 18, 2014, 1:42 PM
NithikaPosted Jun 18, 2014, 1:41 PM