Пример #1
0
 // Helper methods
 // CopyFrom: Copy all of the attributes from another media type into this type.
 public void CopyFrom(MediaTypeBuilder pType)
 {
     if (!pType.IsValid())
     {
         throw new Exception("E_UNEXPECTED");
     }
     if (pType == null)
     {
         throw new Exception("E_POINTER");
     }
     CopyFrom(pType.m_pType);
 }
Пример #2
0
        // Helper methods

        // CopyFrom: Copy all of the attributes from another media type into this type.
        public void CopyFrom(MediaTypeBuilder pType)
        {
            if (!pType.IsValid())
            {
                throw new Exception("E_UNEXPECTED");
            }
            if (pType == null)
            {
                throw new Exception("E_POINTER");
            }
            CopyFrom(pType.m_pType);
        }