Skip to content

Instantly share code, notes, and snippets.

@chrisnas
Last active January 12, 2019 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisnas/fab4f56d3e07c19bb28a478b746d947c to your computer and use it in GitHub Desktop.
Save chrisnas/fab4f56d3e07c19bb28a478b746d947c to your computer and use it in GitHub Desktop.
public class PhantomObjectFinalizer<T, S> : PhantomReference<T> where T : class
{
public S State;
public PhantomObjectFinalizer(ReferenceQueue<T> queue, T value, S state)
: base(queue, value)
{
State = state;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment