Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Problem with nullable property of object

0
0
OK, so:

  1. The problem occurs only when MarshalNullAsDispatch is in effect.
  2. Host members (fields, properties, methods) that return strings should overrideMarshalNullAsDispatch and marshal null return values as DBNull.
If all of that is correct, what other return types should override MarshalNullAsDispatch? One thing that comes to mind is nullable numerics such as int?. Anything else?

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images