Skip to content

Extension method #2

@AlexArchive

Description

@AlexArchive

Originally we would have written something like this:

Expression<Action> func = () => Console.WriteLine();
string result = func.ToString();

I would like for ExpressionToString to offer an extension method. The method name ToString is taken. Maybe call the extension method something like:

  • ToReadableString
  • ToAwesomeString
  • ToSafeString
  • ToStringSafe
  • ToText
  • ToString
  • Dump
  • GetString
  • AsString
  • AsString

(Naming things is hard)

I can do this if you want it.

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