Set() private method

private Set ( Int32 objectId, String value ) : void
objectId System.Int32
value String
return void
Ejemplo 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);
        }