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

GetId() public method

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

Usage Example

コード例 #1
0
ファイル: Formatter.cs プロジェクト: ForNeVeR/pnet
        // Schedule an object for later serialization.
        protected virtual long Schedule(Object obj)
        {
            bool firstTime;
            long objID = m_idGenerator.GetId(obj, out firstTime);

            m_objectQueue.Enqueue(obj);
            return(objID);
        }
All Usage Examples Of System.Runtime.Serialization.ObjectIDGenerator::GetId