Write() public method

public Write ( __BinaryWriter sout ) : void
sout __BinaryWriter
return void
Esempio n. 1
0
        internal void WriteObjectString(int objectId, String value)
        {
            InternalWriteItemNull();

            if (objectWriter.IsCrossAppDomain())
            {
                if (binaryCrossAppDomainString == null)
                {
                    binaryCrossAppDomainString = new BinaryCrossAppDomainString();
                }
                binaryCrossAppDomainString.Set(objectId, objectWriter.CrossAppDomainArrayAdd(value));
                binaryCrossAppDomainString.Dump();
                binaryCrossAppDomainString.Write(this);
            }
            else
            {
                if (binaryObjectString == null)
                {
                    binaryObjectString = new BinaryObjectString();
                }
                binaryObjectString.Set(objectId, value);
                binaryObjectString.Dump();
                binaryObjectString.Write(this);
            }
        }
        internal void WriteObjectString(int objectId, String value)
        {
            InternalWriteItemNull();

            if (binaryObjectString == null)
            {
                binaryObjectString = new BinaryObjectString();
            }
            binaryObjectString.Set(objectId, value);
#if _DEBUG
            binaryObjectString.Dump();
#endif
            binaryObjectString.Write(this);
        }