System.Runtime.Serialization.Formatters.Binary.BinaryObjectString.Set C# (CSharp) Method

Set() private method

private Set ( Int32 objectId, String value ) : void
objectId System.Int32
value String
return void
        internal  void Set(Int32 objectId, String value)
        {
            SerTrace.Log(this, "BinaryObjectString set ",objectId," ",value);
            this.objectId = objectId;
            this.value = value;
        }   

Usage Example

示例#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);
            }
        }
All Usage Examples Of System.Runtime.Serialization.Formatters.Binary.BinaryObjectString::Set