C# 到 F# 的翻译

Translation of C# to F#

如何将以下 C# 代码转换为 F#?

public Autodesk.Revit.UI.Result OnStartup(UIControlledApplication application)
{
   return Result.Succeeded;
}

public Autodesk.Revit.UI.Result OnShutdown(UIControlledApplication application)
{
    return Result.Succeeded;
}

您只需将这些转换为成员:

member __.OnStartup (application : UIControlledApplication) =
    Result.Succeeded

member __.OnShutdown (application : UIControlledApplication) =
    Result.Succeeded