Exemplo n.º 1
0
 /// <summary>
 /// convert <see cref="AVDictionaryEntry"/> to <see cref="KeyValuePair{TKey, TValue}"/>
 /// </summary>
 /// <param name="entry"></param>
 /// <returns></returns>
 public static KeyValuePair <string, string> GetEntry(this AVDictionaryEntry entry)
 {
     return(new KeyValuePair <string, string>(entry.GetKey(), entry.GetValue()));
 }
Exemplo n.º 2
0
        private static KeyValuePair <string, string> GetEntry(IntPtr intPtr)
        {
            AVDictionaryEntry entry = *(AVDictionaryEntry *)intPtr;

            return(new KeyValuePair <string, string>(entry.GetKey(), entry.GetValue()));
        }