/// <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); }
/// <summary> /// Gets the shared <see cref="BinaryPropertyReader"/>. /// </summary> /// <returns>The <see cref="BinaryPropertyReader"/>.</returns> internal BinaryPropertyReader GetBinaryPropertyReader() => m_BinaryPropertyReader ?? (m_BinaryPropertyReader = new BinaryPropertyReader());
internal BinaryDeserializationContext(BinaryPropertyReader visitor, BinaryAdapterCollection.Enumerator adapters, bool isRoot) { m_Visitor = visitor; m_Adapters = adapters; m_IsRoot = isRoot; }