本文整理汇总了C#中Serializer.Log方法的典型用法代码示例。如果您正苦于以下问题:C# Serializer.Log方法的具体用法?C# Serializer.Log怎么用?C# Serializer.Log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Serializer
的用法示例。
在下文中一共展示了Serializer.Log方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeKernelNameMap
void IFastSerializable.ToStream(Serializer serializer)
{
if (driveNames == null)
InitializeKernelNameMap();
// We mark the end of this set of variables so we can add to the end of it, since there is a
// good chance we will have to change it.
ForwardReference endOfKernelNameMap = serializer.GetForwardReference();
serializer.Write(endOfKernelNameMap);
serializer.Write(1); // This is a version number.
serializer.Write(driveNames.Length);
serializer.Log("<WriteColection name=\"driveNames\" count=\"" + driveNames.Length + "\">\r\n");
for (int i = 0; i < driveNames.Length; i++)
{
serializer.Write(driveNames[i]);
serializer.Write(kernelNameForDrives[i]);
}
serializer.Log("</WriteColection>\r\n");
serializer.Write(windows);
serializer.Write(systemRoot);
serializer.DefineForwardReference(endOfKernelNameMap);
serializer.Write(threadIDtoProcessID.Count);
serializer.Log("<WriteColection name=\"ProcessIDForThread\" count=\"" + threadIDtoProcessID.Count + "\">\r\n");
foreach (HistoryDictionary<int>.HistoryValue entry in threadIDtoProcessID.Entries)
{
serializer.Write((long)entry.Key);
serializer.Write(entry.StartTime100ns);
serializer.Write(entry.Value);
}
serializer.Log("</WriteColection>\r\n");
serializer.Log("<WriteColection name=\"fileIDToName\" count=\"" + fileIDToName.Count + "\">\r\n");
serializer.Write(fileIDToName.Count);
foreach (HistoryDictionary<string>.HistoryValue entry in fileIDToName.Entries)
{
serializer.Write((long)entry.Key);
serializer.Write(entry.StartTime100ns);
serializer.Write(entry.Value);
}
serializer.Log("</WriteColection>\r\n");
}