コード例 #1
0
		public void Write(IDecompilerOutput output, MetaDataTableRecordVM mdVM) {
			var cols = MetaDataTableVM.TableInfo.Columns;

			output.Write(mdVM.RidString, BoxedTextColor.Comment);
			output.Write("\t", BoxedTextColor.Comment);
			output.Write(mdVM.TokenString, BoxedTextColor.Comment);
			output.Write("\t", BoxedTextColor.Comment);
			output.Write(mdVM.OffsetString, BoxedTextColor.Comment);
			for (int j = 0; j < cols.Count; j++) {
				output.Write("\t", BoxedTextColor.Comment);
				output.Write(mdVM.GetField(j).DataFieldVM.StringValue, BoxedTextColor.Comment);
			}
			if (MetaDataTableVM.HasInfo) {
				output.Write("\t", BoxedTextColor.Comment);
				output.Write(mdVM.Info, BoxedTextColor.Comment);
			}
			output.WriteLine();
		}
コード例 #2
0
		public void Write(ITextOutput output, MetaDataTableRecordVM mdVM) {
			var cols = tablesStreamVM.TableInfo.Columns;

			output.Write(mdVM.RidString, TextTokenKind.Comment);
			output.Write("\t", TextTokenKind.Comment);
			output.Write(mdVM.TokenString, TextTokenKind.Comment);
			output.Write("\t", TextTokenKind.Comment);
			output.Write(mdVM.OffsetString, TextTokenKind.Comment);
			for (int j = 0; j < cols.Count; j++) {
				output.Write("\t", TextTokenKind.Comment);
				output.Write(mdVM.GetField(j).DataFieldVM.StringValue, TextTokenKind.Comment);
			}
			if (tablesStreamVM.HasInfo) {
				output.Write("\t", TextTokenKind.Comment);
				output.Write(mdVM.Info, TextTokenKind.Comment);
			}
			output.WriteLine();
		}