BigFont Blog
  • Home
  • About
  • Bibliography (Work)

.net

A collection of 2 posts

c#

GetEnumerator and GetAsyncEnumerator both return a new instance of an enumerator.

GetEnumerator and GetAsyncEnumerator return a new instance of an enumerator. As a result... var e1 = sequence.GetEnumerator(); var e2 = sequence.GetEnumerator(); Console.WriteLine(e1 == e2); // false!!!Corollary1: if we call e1.MoveNext(), the

  • Shaun Luttin
    Shaun Luttin
1 min read
What is a .NET Mutex?
c#

What is a .NET Mutex?

https://msdn.microsoft.com/en-us/library/system.threading.mutex(v=vs.110).aspx a primitive .NET type one thread owns it at a time WaitOne(int) blocks the calling thread returns true when

  • Shaun Luttin
    Shaun Luttin
1 min read
BigFont Blog © 2022
Latest Posts Ghost