示例#1
0
 private DebugElement CreateAttribute(DebugManager.AttributeEntry attribute)
 {
     if (attribute is DebugManager.PropertyAttributeEntry)
     {
         return(CreatePropertyElement(attribute as DebugManager.PropertyAttributeEntry));
     }
     else
     {
         throw new System.NotImplementedException("Cannot recognize type " + attribute.GetType());
     }
 }
    private void LoadEntry(DebugManager.AttributeEntry entry)
    {
        if (!_idLookup.ContainsKey(entry.Attribute.Category))
        {
            _categorisedData.Add((byte)_idLookup.Count, new List <DebugManager.AttributeEntry>());
            _idLookup.Add(entry.Attribute.Category, (byte)_idLookup.Count);
        }

        byte id = _idLookup[entry.Attribute.Category];

        _categorisedData[id].Add(entry);
    }