System.Threading.CompressedStack.Run C# (CSharp) Method

Run() public static method

public static Run ( CompressedStack compressedStack, ContextCallback callback, object state ) : void
compressedStack CompressedStack
callback ContextCallback
state object
return void
        public static void Run(CompressedStack compressedStack, ContextCallback callback, object state)
        {
            if (compressedStack == null)
            {
                throw new ArgumentNullException(nameof(compressedStack));
            }

            // The original code was not checking for a null callback and would throw NullReferenceException
            callback(state);
        }

Same methods

CompressedStack::Run ( System compressedStack, System callback, object state ) : void