I am using the FirstOrDefault<T>()
method to return an object from a Linq2Sql query. I then set an object to be equal to the returned value.
how do I test if the default has been returned?
I am using the FirstOrDefault<T>()
method to return an object from a Linq2Sql query. I then set an object to be equal to the returned value.
how do I test if the default has been returned?
If T is a non-primitive data type I believe the default value will be null
.