/// <summary>
 /// Returns the medium at the given index in the list.
 /// </summary>
 /// <param name="index"></param>
 /// <returns></returns>
 public string this[int index]
 {
     get
     {
         if (index < 0 || index >= Count)
         {
             throw new ArgumentOutOfRangeException("index");
         }
         var retval = new nsAString();
         MediaList.Item((uint)index, retval);
         return(retval.ToString());
     }
 }
Beispiel #2
0
        /// <summary>
        /// Returns the medium at the given index in the list.
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public string this[int index]
        {
            get
            {
                if (index < 0 || index >= Count)
                {
                    throw new ArgumentOutOfRangeException("index");
                }

                using (nsAString str = new nsAString())
                {
                    MediaList.Item(index, str);
                    return(str.ToString());
                }
            }
        }