private static void smethod_4(CtbFile.Interface45 token, int line) { if (token.Type != CtbFile.Enum43.const_2) { throw new IOException("CTB file format error: Expected closing group [line " + (object)line + "]"); } }
private void method_0(string content) { this.list_0.Clear(); this.list_1.Clear(); string[] lines = content.Split(new string[2] { "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries); int l = 0; while (l < lines.Length) { if (CtbFile.smethod_1(lines[l])) { ++l; } else { CtbFile.Interface45 nterface45 = CtbFile.smethod_5(lines, ref l); switch (nterface45.Type) { case CtbFile.Enum43.const_0: switch (nterface45.Key) { case "description": this.string_24 = nterface45.imethod_0(l); continue; case "aci_table_available": continue; case "scale_factor": this.double_1 = nterface45.imethod_1(l); continue; case "apply_factor": this.bool_0 = nterface45.imethod_3(l); continue; case "custom_lineweight_display_units": this.displayUnit_0 = (CtbFile.DisplayUnit)nterface45.imethod_2(l); continue; default: throw new IOException("CTB file format error: Unknown global value " + nterface45.Key + " [line " + (object)l + "]"); } case CtbFile.Enum43.const_1: switch (nterface45.Key) { case "aci_table": CtbFile.smethod_2(lines, ref l); continue; case "plot_style": this.method_2(lines, ref l); continue; case "custom_lineweight_table": this.method_3(lines, ref l); continue; default: continue; } case CtbFile.Enum43.const_2: throw new IOException("CTB file format error: Unexpected close [line " + (object)l + "]"); default: continue; } } } }
internal void Write(CtbFile.Interface45 token) { token.Write(this); }