/// <summary>
        /// Gets the shared <see cref="BinaryPropertyReader"/>.
        /// </summary>
        /// <returns>The <see cref="BinaryPropertyReader"/>.</returns>
        internal BinaryPropertyReader GetBinaryPropertyReader()
        {
            if (null != m_BinaryPropertyReader)
            {
                return(m_BinaryPropertyReader.IsLocked ? new BinaryPropertyReader() : m_BinaryPropertyReader);
            }

            m_BinaryPropertyReader = new BinaryPropertyReader();
            return(m_BinaryPropertyReader);
        }
コード例 #2
0
 /// <summary>
 /// Gets the shared <see cref="BinaryPropertyReader"/>.
 /// </summary>
 /// <returns>The <see cref="BinaryPropertyReader"/>.</returns>
 internal BinaryPropertyReader GetBinaryPropertyReader()
 => m_BinaryPropertyReader ?? (m_BinaryPropertyReader = new BinaryPropertyReader());
コード例 #3
0
 internal BinaryDeserializationContext(BinaryPropertyReader visitor, BinaryAdapterCollection.Enumerator adapters, bool isRoot)
 {
     m_Visitor  = visitor;
     m_Adapters = adapters;
     m_IsRoot   = isRoot;
 }