Add support for implicit and explicit operators (#51)

* .

* xxxxxxxx

* rev

* ....

* .

* ok

* 2

* .

* ,
This commit is contained in:
Stef Heyenrath
2023-01-09 21:06:30 +01:00
committed by GitHub
parent da40aae293
commit 106385a466
21 changed files with 288 additions and 2 deletions
@@ -19,6 +19,7 @@ internal partial class ProxyClassesGenerator
str.AppendLine($" Mapster.TypeAdapterConfig<{replacedType.Key}, {replacedType.Value}>.NewConfig().ConstructUsing({instance} => new {classNameProxy}({instance}));");
str.AppendLine($" Mapster.TypeAdapterConfig<{replacedType.Value}, {replacedType.Key}>.NewConfig().MapWith({proxy} => (({classNameProxy}) {proxy})._Instance);");
str.AppendLine();
}