Skip to content

What does object.Value return of {} mean?

Dan Halliday

Asked Aug 17, 2010, 3:27 AM EDT2 answers
Share
LinkedInX
Hi

I am debugging a third party library that is throwing an exception. I don't think the finer details of the library are relevant but you can correct me on that if I am wrong.

I have a parameter of type object passed to a function. The return of object.Value is:
{}

How can I test for this? What is the value? It is not null and I don't know how to test for and handle this value.

Thanks
Dan

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I beg your pardon - .Value is a method of the library.
    This method returns an object. When I check the object in the Immediate Window I get the {} return.
    0
  • 0
    It turns out this means it is System.DBNull.Value.
    0