G
Guest
Hi All
Learning C# - what is the equivalent in C# for the following statement
al.CompanyID = IIf(IsDBNull(d("CompanyID")), "", d("CompanyID")
I don't see anything in C# that provides for this one line type of syntax. Seems I have to use a If-else block for each in C#
True or am I missing something
Appreciate anyone that can clear this up for me
thanks...Bobb
Learning C# - what is the equivalent in C# for the following statement
al.CompanyID = IIf(IsDBNull(d("CompanyID")), "", d("CompanyID")
I don't see anything in C# that provides for this one line type of syntax. Seems I have to use a If-else block for each in C#
True or am I missing something
Appreciate anyone that can clear this up for me
thanks...Bobb