Skip to content

Use Convert class for primitive type casting #2

Description

@DylanYasen
 try {
       Convert.ChangeType(string, typeof(Param));
     }
 catch (InvalidCastException) {
        Console.WriteLine("invalid cast");
     }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions