Skip to content

FOUNDATIONS: Suggestion for "List<string> GetData(string key)" #38

@LBoullosa

Description

@LBoullosa

Hi!,

Because Xeption creates data dictionary elements as a List, could be interesting to have a method to retrieve an element of the dictionary casted to the right type. Actually, for example, when I need to access Data is returned as object and has to be converted in every piece of code....which it´s a little bit ugly and redundant.

((List<string>)exception.Data[key])[0]

So, how do you feel about this sugestion?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    FOUNDATIONSThe foundations category

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions