public static int AddNewHandle(handlevalue value) { lock ((HandleValues as ICollection).SyncRoot) HandleValues.Add(handleCounter, value); return(handleCounter++); }
public static int AddNewHandle(handlevalue value) { lock((HandleValues as ICollection).SyncRoot) HandleValues.Add(handleCounter, value); return handleCounter++; }
public static bool TryGetValue(int handle, out handlevalue value) { return(HandleValues.TryGetValue(handle, out value)); }
public static bool TryGetValue(int handle, out handlevalue value) { return HandleValues.TryGetValue(handle, out value); }