Example #1
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.AppendLine("{");
            builder.AppendFormat("\t\"platformID\": \"{0}\",\n", platformID);
            builder.AppendFormat("\t\"encodingID\": \"{0}\",\n", EncodingID.ToName(platformID, encodingID));
            builder.AppendFormat("\t\"offset\": 0x{0:X8}\n", offset);
            builder.Append("}");
            return(builder.ToString());
        }
Example #2
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.AppendLine("{");
            builder.AppendFormat("\t\"platformID\": \"{0}\",\n", platformID);
            builder.AppendFormat("\t\"encodingID\": \"{0}\",\n", EncodingID.ToName(platformID, encodingID));
            builder.AppendFormat("\t\"languageID\": \"{0}\",\n", LanguageID.ToName(platformID, languageID));
            builder.AppendFormat("\t\"nameID\": \"{0}\",\n", NameID.ToName(nameID));
            builder.AppendFormat("\t\"length\": 0x{0:X4},\n", length);
            builder.AppendFormat("\t\"offset\": 0x{0:X4},\n", offset);
            builder.AppendFormat("\t\"text\": \"{0}\"\n", text);
            builder.Append("}");
            return(builder.ToString());
        }