System.Runtime.Serialization.ObjectIDGenerator.HasId C# (CSharp) Method

HasId() public method

public HasId ( object obj, bool &firstTime ) : long
obj object
firstTime bool
return long
        public virtual long HasId(object obj, out bool firstTime) { throw null; }
    }

Usage Example

コード例 #1
0
ファイル: Formatter.cs プロジェクト: ForNeVeR/pnet
        // Get the next object to be serialized.
        protected virtual Object GetNext(out long objID)
        {
            Object next = m_objectQueue.Dequeue();
            bool   firstTime;

            objID = m_idGenerator.HasId(next, out firstTime);
            if (!firstTime)
            {
                throw new SerializationException
                          (_("Serialize_NoObjectID"));
            }
            return(next);
        }
All Usage Examples Of System.Runtime.Serialization.ObjectIDGenerator::HasId