Esempio n. 1
0
        private string ShowDebugDirectory_Type(DebugDirectoryEntry directoryEntry)
        {
            DebugDirectoryEntryType type = directoryEntry.GetEntryType();
            EnumAnnotations<DebugDirectoryEntryType> annotations = new EnumAnnotations<DebugDirectoryEntryType>();
            EnumAnnotation<DebugDirectoryEntryType> annotation = annotations.FirstOrDefault(a => a.Value == type);

            if (annotation == null)
                return null;

            long value = Convert.ToInt64(annotation.Value);
            string result = String.Format("{0}  {1}", Utils.IntToHex(value, 8), annotation.HeaderName);

            return result;
        }