Skip to content

Converting small function throws exception #12

@PiemanJ

Description

@PiemanJ

This conversion threw an error (System.ArgumentException: The option value was None (Parameter 'option'))
public static int ToInt32(string value)
{
int.TryParse(value, out int result);
return result;
}

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