Skip to content

Move Parse extension methods to the appropriate Symbol types #1901

Closed
@jonsequitur

Description

@jonsequitur
        // This method group looks fine, but should be an instance method on Argument, or a non-extension method somewhere else.
        // I recommend using different names for the two overloads.  That would allow you to use `params string[] args` for the latter.
        // Argument::Parse(string) and Argument::ParseArguments(params string[] args), maybe?
        public static ParseResult Parse(this Argument argument, string commandLine);
        public static ParseResult Parse(this Argument argument, string[] args);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions