You could also do something like:
public class NullableIntExample
{
private int i = 0;
private DateTime dt = DateTime.Now;
public int? I
{
get
{
if (this.i == 0)
{
return null;
}
else
{
return this.i;
}
}
public DateTime? DT
{
get
{
if (this.i == 0)
{
return null;
}
else
{
return this.dt;
}
}
}