hazzik / DelegateDecompiler

A library which is able to decompile a delegate or a method body to its lambda representation
MIT License
528 stars 62 forks source link

Are interpollated strings supported? #128

Closed paulvanbladel closed 5 years ago

paulvanbladel commented 6 years ago
  [Computed]
    public string FullName
    {
        get { return $"{FirstName}  {LastName}"; }
    }
magicmoux commented 6 years ago

Hi Paul, Interpolated strings are syntactic-sugar for edition. I believe the compiler translates those into String.Concat(params string[]) calls. So they should normally be decompiled without any problem.

Max.

hazzik commented 5 years ago

Interpolation usually a syntactic sugar for string.Format(...). The DelegateDecompiler correctly decompiles the expression, however the support of the expression would be solely dependant on the underlying linq provider for which expression tree is intended.