All f# extension methods for string

  • String.ToEnum<'a>

    Shortcut for the .NET 4 Enum.TryParse(). Defaults to ignoring case, returns an F# Option to indicate success/failure. Unlike a C# extension method, this is able to enforce that the generic type is an enum at compile time.
    F# System.String Joel Mueller

 

;