M
Mike
Hi,
I have a dataset that is encapsulated inside a class where I use property
accessors for the outside world to retrieve the data. The problem I am
running into is there are times when there are null values. For example, I
have a Guid Column in a datatable that is a foriegn key that can be null. I
know how to test for null values however I do not know what to return when
it is null. Code is below:
public Guid ModelOptionID
{
get
{
if (!verabarProdDS.VerabarProducts[0].IsModelOptionIDNull())
{
return verabarProdDS.VerabarProducts[0].ModelOptionID;
}
else
{
return ?
}
}
}
Thanks
I have a dataset that is encapsulated inside a class where I use property
accessors for the outside world to retrieve the data. The problem I am
running into is there are times when there are null values. For example, I
have a Guid Column in a datatable that is a foriegn key that can be null. I
know how to test for null values however I do not know what to return when
it is null. Code is below:
public Guid ModelOptionID
{
get
{
if (!verabarProdDS.VerabarProducts[0].IsModelOptionIDNull())
{
return verabarProdDS.VerabarProducts[0].ModelOptionID;
}
else
{
return ?
}
}
}
Thanks