本文整理汇总了C#中Roslyn.Utilities.ObjectWriter.WriteCompressedUInt方法的典型用法代码示例。如果您正苦于以下问题:C# ObjectWriter.WriteCompressedUInt方法的具体用法?C# ObjectWriter.WriteCompressedUInt怎么用?C# ObjectWriter.WriteCompressedUInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Roslyn.Utilities.ObjectWriter
的用法示例。
在下文中一共展示了ObjectWriter.WriteCompressedUInt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1:
void IObjectWritable.WriteTo(ObjectWriter writer)
{
writer.WriteValue(_resourceSource);
writer.WriteString(_nameOfLocalizableResource);
var length = (uint)_formatArguments.Length;
writer.WriteCompressedUInt(length);
for (int i = 0; i < length; i++)
{
writer.WriteString(_formatArguments[i]);
}
}
示例2: WriteTo
protected virtual void WriteTo(ObjectWriter writer)
{
writer.WriteValue(this.messageProvider);
writer.WriteCompressedUInt((uint)this.errorCode);
writer.WriteBoolean(this.isWarningAsError);
int count = (this.arguments != null) ? arguments.Length : 0;
writer.WriteCompressedUInt((uint)count);
if (count > 0)
{
foreach (var arg in this.arguments)
{
writer.WriteString(arg.ToString());
}
}
}
示例3: WriteTo
protected virtual void WriteTo(ObjectWriter writer)
{
writer.WriteValue(_messageProvider);
writer.WriteCompressedUInt((uint)_errorCode);
writer.WriteInt32((int)_effectiveSeverity);
writer.WriteInt32((int)_defaultSeverity);
int count = (_arguments != null) ? _arguments.Length : 0;
writer.WriteCompressedUInt((uint)count);
if (count > 0)
{
foreach (var arg in _arguments)
{
writer.WriteString(arg.ToString());
}
}
}
示例4: WriteTo
protected override void WriteTo(ObjectWriter writer)
{
base.WriteTo(writer);
writer.WriteCompressedUInt((uint)this.xmlErrorCode);
}