예제 #1
0
 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
0
        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
0
        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
0
 protected override void WriteTo(ObjectWriter writer)
 {
     base.WriteTo(writer);
     writer.WriteCompressedUInt((uint)this.xmlErrorCode);
 }