Allow specifying nullable type to CollectionExtensions.GetValue

Description

The GetValue and GetValueOrDefault methods in DotNetNuke.Collection.CollectionExtensions try to automatically convert a value into a given type. However, if that type is nullable and the value is null, then an InvalidCastException is thrown. The code should allow returning null for a nullable type.

QA Test Plan

None

Activity

Show:
Brian Dukes
July 10, 2014, 10:01 PM
Sebastian Leupold
July 11, 2014, 8:58 AM

great enhancement!

Bing Wu
July 31, 2014, 5:02 PM

not visible for QA, and it needs to be code reviewed.

Ken Grierson
September 8, 2014, 3:21 PM

Closing per confirmation this is just code addition to support new data values that were not supported before

Assignee

Ken Grierson

Reporter

Brian Dukes

Story Size

None

Severity

None

Triage

New

Fixed in Build

Dev Owner

None

Includes Code Fix

Yes

Documentation Required

No

Trouble Ticket

None

Requires More Info

None

QA Story Points

None

QA Owner

None

Injected

None

Automation Required

None

Code Review Owner

None

Components

Fix versions

Affects versions

Priority

Low
Configure