Exemple #1
0
        public void CopyTo(Dictionary ADictionary)
        {
            if (ADictionary == null)
            {
                throw new ArgumentNullException(nameof(ADictionary));
            }

            AVDictionary.Copy(ref ADictionary.Ref, Ref, Flags);
        }
Exemple #2
0
        public Dictionary Clone()
        {
            var clone = new Dictionary(AVDictionary.Alloc(), Flags);

            try
            {
                AVDictionary.Copy(ref clone.Ref, Ref, Flags);
            }
            catch
            {
                clone.Clear();
                throw;
            }

            return(clone);
        }