Ejemplo n.º 1
0
        /// <summary>
        /// Request that member fields be cloned and marked as editable.
        /// </summary>
        protected override void CloneMembersAsEditable()
        {
            if (!CanWrite)
            {
                throw new Exception("This file cannot be modified because the file system version is not recgonized");
            }
            m_flags = m_flags.CloneEditable();
            m_files = m_files.CloneEditable();

            if (m_userAttributes != null)
            {
                m_userAttributes = new Dictionary <Guid, byte[]>(m_userAttributes);
            }
            if (m_unknownAttributes != null)
            {
                m_unknownAttributes = new Dictionary <short, byte[]>(m_unknownAttributes);
            }
        }