static System.IDisposable Create (System.Action action)

Parameters

NameTypeDescription
action System.Action The action to invoke when disposed

Returns

TypeDescription
System.IDisposable A disposable object that will invoke the action
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.