Пример #1
0
 public DObjectCon this[DObject.TObjectType aType]
 {
     get
     {
         return(ContainerByType(aType));
     }
 }
Пример #2
0
 private void MakeEmptyContainers()
 {
     iContainers.Clear();
     //
     for (int i = 0; i < (int)DObject.TObjectType.ENumObjectTypes; i++)
     {
         DObject.TObjectType type      = (DObject.TObjectType)i;
         DObjectCon          container = new DObjectCon(this, type);
         iContainers.Add(container);
     }
 }
Пример #3
0
        public DObjectCon ContainerByType(DObject.TObjectType aType)
        {
            DObjectCon ret = null;

            //
            foreach (DObjectCon container in iContainers)
            {
                if (container.Type == aType)
                {
                    ret = container;
                    break;
                }
            }
            //
            if (ret == null)
            {
                throw new ArgumentException("Bad container type: " + aType);
            }
            //
            return(ret);
        }
Пример #4
0
 public DObjectCon(CrashDebuggerInfo aCrashDebugger, DObject.TObjectType aType)
     : base(aCrashDebugger)
 {
     iType = aType;
 }