Wednesday, July 30, 2014

#201 – You Can Leak Memory in C# | 2,000 Things You Should Know About C#

Nope, this code example is not a memory leak.

re:
 public static List<Person> userLog;
 
static void RecordUserInfo(Person justLoggedIn)
{
    userLog.Add(justLoggedIn);
}

No comments: