Skip to content

Choking on property of type Type  #19

@pvolchek

Description

@pvolchek

Wanted to use the property of type Type ...
Interface:
public interface IMyConfiguration
{
Type DeclaredType { get; }
}
Config
...

But got an exception
Tried to map element ... using 'RecursingMapper', and barfed. See inner exception for details.

Workaround:
declare property as string
in the code use:
var mytype = Type.GetType(myconfig.DeclaredType)

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