Skip to content

get different result from extension method #810

@lizhanglong

Description

@lizhanglong

first:
public static TDest MapAdapt<TDest>(this object source, TDest dest)
{
return source.Adapt(dest);
}

second:
public static TDest MapAdapt<TSource, TDest>(this TSource source, TDest dest)
{
return source.Adapt(dest);
}

first method get result like:source.Adapt<TDest>();
second method works well.

Bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions