如何将以下C#代码翻译为F#?
public Autodesk.Revit.UI.Result OnStartup(UIControlledApplication application)
{
return Result.Succeeded;
}
public Autodesk.Revit.UI.Result OnShutdown(UIControlledApplication application)
{
return Result.Succeeded;
}
答案 0 :(得分:4)
您只需将这些转换为成员:
member __.OnStartup (application : UIControlledApplication) =
Result.Succeeded
member __.OnShutdown (application : UIControlledApplication) =
Result.Succeeded