/// <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);
        }
Exemplo n.º 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());
Exemplo n.º 3
0
 internal BinaryDeserializationContext(BinaryPropertyReader visitor, BinaryAdapterCollection.Enumerator adapters, bool isRoot)
 {
     m_Visitor  = visitor;
     m_Adapters = adapters;
     m_IsRoot   = isRoot;
 }