Class ReloadScope¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
What a module registered while it loaded, so that loading it again can take it back: a function that draws, a signal connection, a system. A reload makes a new scope, runs the new module in it, and then either runs the old scope's cleanups (the new code worked) or this one's (it did not, and the old registrations stay).
public sealed class ReloadScope
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Cleanup()¶
Takes back everything registered in the scope, the last first. A cleanup that fails does not stop the others.
public void Cleanup()