csharp IsNull

static object IsNull(object Value, object DefaultValue)
{
    if (Value == null || Value == System.DBNull.Value)
    {
        return DefaultValue;
    }
    else
    {
        return Value;
    }
}
IsNull in C#

Updated: Friday 1st October 2010, 08:16pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.