A
A.M
Could anybody translate this function into C# please?
Thanks,
Ali
Public Shared Function NzDataReader(ByVal v As Object, Optional ByVal z As
Object = "", Optional ByVal NullClass As String = "System.DBNull")
Try
If v.GetType.ToString = NullClass Then
Return z
Else
Return v
End If
Catch e As Exception
ErrorHandler(e)
End Try
End Function
Thanks,
Ali
Public Shared Function NzDataReader(ByVal v As Object, Optional ByVal z As
Object = "", Optional ByVal NullClass As String = "System.DBNull")
Try
If v.GetType.ToString = NullClass Then
Return z
Else
Return v
End If
Catch e As Exception
ErrorHandler(e)
End Try
End Function