Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Unassigned: ObjectContent.Value to return T not object [1137]

$
0
0
Currently `ObjectContext<T>` returns `base.Value` which has type `object`.
Doesn't it make sense to introduce strongly-typed property to return `T` ( and change how is being kept internally)?
Comments: Currently `ObjectContext<T>` is useless because there is no difference between: T value = (T)((ObjectContext<T>)msg.Context)).Value and T value = (T)((ObjectContext)msg.Context).Value i.e. repeated cast takes place in both cases. Having a strongly-typed property of T would dispose from the necessity of such repeated cast.

Viewing all articles
Browse latest Browse all 7215

Trending Articles