Beispiel #1
0
        private ObjectMemoryCounters Get(InterfaceType ifType)
        {
            var name = ifType.Type.FullName;
            ObjectMemoryCounters result;

            if (!Objects.TryGetValue(name, out result))
            {
                result        = new ObjectMemoryCounters(name);
                Objects[name] = result;
            }
            return(result);
        }
Beispiel #2
0
 private ObjectMemoryCounters Get(InterfaceType ifType)
 {
     var name = ifType.Type.FullName;
     ObjectMemoryCounters result;
     if (!Objects.TryGetValue(name, out result))
     {
         result = new ObjectMemoryCounters(name);
         Objects[name] = result;
     }
     return result;
 }