use Dispose event rather than reimplement disposable
This commit is contained in:
Родитель
3fc75893b3
Коммит
fb01596831
|
@ -271,10 +271,7 @@ type iOSDesignerProvider(config: TypeProviderConfig) as this =
|
|||
do rootType.DefineStaticParameters([ProvidedStaticParameter ("DesignerFile", typeof<string>)
|
||||
ProvidedStaticParameter ("Register", typeof<bool>)], buildTypes)
|
||||
this.AddNamespace(ns, [rootType])
|
||||
|
||||
interface IDisposable with
|
||||
member x.Dispose() =
|
||||
if !watchedFile <> null then (!watchedFile).Dispose()
|
||||
this.Disposing.Add (fun _ -> if !watchedFile <> null then (!watchedFile).Dispose())
|
||||
|
||||
[<assembly:TypeProviderAssembly()>]
|
||||
do()
|
Загрузка…
Ссылка в новой задаче