internal static int TrackedObjectCount() { var keys = Table.GetPropertyValue("Keys") as IEnumerable <object>; return(keys?.Count() ?? throw new InvalidOperationException("Reaching into ConditionalWeakTable for the Keys collection has failed")); }
internal static int TrackedObjectCount() { var keys = Table.GetPropertyValue("Keys") as IEnumerable <object>; return(keys?.Count() ?? throw new InvalidOperationException("Reaching into ConditionalWeakTable for the Keys collection has failed")); }