Skip to content

Members with type mapping should handle nulls #18

@herskinduk

Description

@herskinduk

If a method or property on a wrapper needs to convert the return type - it currently does not check for null values when new'ing up wrappers. The consumer would have to look at InnerObject to see verify nulls.

Two approaches:

  1. The wrapped method/property only converts if target is not null. Else it will return null. (hard)
  2. The wrapped method/property does what it does today and IAutoWrapped exposes a HasValue method. (easy)

Let's see a show of hands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions