Пример #1
0
        public override void WriteData(BinaryWriterExtension objBinaryWriter)
        {
            base.WriteData(objBinaryWriter);

            objBinaryWriter.Write(Details);
            objBinaryWriter.WriteObject(Exception);
        }
Пример #2
0
        public override void WriteData(BinaryWriterExtension objBinaryWriter)
        {
            base.WriteData(objBinaryWriter);

            objBinaryWriter.Write(Settings.Count);
            foreach (KeyValuePair <string, object> objKeyValuePair in Settings)
            {
                objBinaryWriter.Write(objKeyValuePair.Key);
                objBinaryWriter.WriteObject(objKeyValuePair.Value);
            }
        }
Пример #3
0
        public override void WriteData(BinaryWriterExtension objBinaryWriter)
        {
            base.WriteData(objBinaryWriter);

            TransportableDataType enuDataType = TransportableDataTypeHelper.GetTypeFromSystemType(typeof(TObjectType));

            int intCount = this.Count;

            objBinaryWriter.Write(intCount);

            for (int intIndex = 0; intIndex < intCount; intIndex++)
            {
                TObjectType objItem = this[intIndex];
                objBinaryWriter.WriteObject(objItem, enuDataType);
            }
        }