How can I purposely overflow my memory, to force garbage collection? Can someone propose algorithm like this:
while ( garbage collector starts ) {
overflow my memory with something easily disposable
}
Edit: To everyone that purposed GC.Collect method. I've always tought, that GC can not be forced to occur programmaticaly. Guess, I was wrong. Thanks for the answers.