public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(String.Format("0x{0} Characteristics 0x{1}{2}", Characteristics.getOffset().ToString("X"), Characteristics.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} TimeDateStamp 0x{1}{2}", TimeDateStamp.getOffset().ToString("X"), TimeDateStamp.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} MajorVersion 0x{1}{2}", MajorVersion.getOffset().ToString("X"), MajorVersion.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} MinorVersion 0x{1}{2}", MinorVersion.getOffset().ToString("X"), MinorVersion.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} NumberOfNamedEntries 0x{1}{2}", NumberOfNamedEntries.getOffset().ToString("X"), NumberOfNamedEntries.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} NumberOfIdEntries 0x{1}{2}", NumberOfIdEntries.getOffset().ToString("X"), NumberOfIdEntries.getValue().ToString("X"), "")); return(stringBuilder.ToString()); }
public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(String.Format("0x{0} OffsetToData 0x{1}{2}", OffsetToData.getOffset().ToString("X"), OffsetToData.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} DataSize 0x{1}{2}", DataSize.getOffset().ToString("X"), DataSize.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} CodePage 0x{1}{2}", CodePage.getOffset().ToString("X"), CodePage.getValue().ToString("X"), Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} Reserved 0x{1}{2}", Reserved.getOffset().ToString("X"), Reserved.getValue().ToString("X"), "")); return(stringBuilder.ToString()); }
public override string ToString() { StringBuilder stringBuilder = new StringBuilder(); string directoryNameString = ""; if (isNamedDirectory) { directoryNameString = "(" + directoryName + ")"; } else if (firstNode) { directoryNameString = "(" + Enum.GetName(typeof(ResourceTypes), directoryType) + ")"; } stringBuilder.Append(String.Format("0x{0} Name 0x{1} {2}{3}", Name.getOffset().ToString("X"), Name.getValue().ToString("X"), directoryNameString, Environment.NewLine)); stringBuilder.Append(String.Format("0x{0} OffsetToData 0x{1}{2}", OffsetToData.getOffset().ToString("X"), OffsetToData.getValue().ToString("X"), "")); return(stringBuilder.ToString()); }