public static void Postfix() { context = CRand.get_state(); CRand.set_state(ContextStack.stack.Pop()); RandContextCounter.currentContextName = oldContext; oldContext = null; RandContextCounter.context_counter--; }
public static void Prefix() { ContextStack.stack.Push(CRand.get_state()); CRand.set_state(context); oldContext = RandContextCounter.currentContextName; RandContextCounter.currentContextName = typeof(T); RandContextCounter.context_counter++; }
public static void postfix() { state_mine = CRand.get_state(); CRand.set_state(state_old); }
public static void Prefix() { state_old = CRand.get_state(); CRand.set_state(state_mine); }