Exemplo n.º 1
0
 /// <summary>
 /// Remove a base tag
 /// </summary>
 /// <param name="value"></param>
 public void Remove(FlvBaseTag value)
 {
     if (List.Contains(value))
     {
         List.Remove(value as object);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Convert collection to array
        /// </summary>
        /// <returns>Base tags array</returns>
        public FlvBaseTag[] ToArray()
        {
            FlvBaseTag[] res = null;

            if (this.Count > 0)
            {
                res = new FlvBaseTag[this.Count];
                for (int i = 0; i < this.Count; i++)
                {
                    res[i] = this[i];
                }
            }
            return(res);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Insert a base tag at
 /// </summary>
 /// <param name="index">index</param>
 /// <param name="value">base tag</param>
 public void Insert(int index, FlvBaseTag value)
 {
     List.Insert(index, value as object);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Add a base tag
 /// </summary>
 /// <param name="value">base tag to add</param>
 /// <returns>base tag added</returns>
 public FlvBaseTag Add(FlvBaseTag value)
 {
     List.Add(value as object);
     return(value);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Test if list contain a base tag
 /// </summary>
 /// <param name="value">base tag</param>
 /// <returns>contain result</returns>
 public bool Contains(FlvBaseTag value)
 {
     return(List.Contains(value as object));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Get index of a base tag
 /// </summary>
 /// <param name="value">base tag</param>
 /// <returns>base tag index if is contain, -1 else.</returns>
 public int IndexOf(FlvBaseTag value)
 {
     return(List.IndexOf(value));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Add a base tag
 /// </summary>
 /// <param name="value">base tag to add</param>
 /// <returns>base tag added</returns>
 public FlvBaseTag Add(FlvBaseTag value)
 {
     List.Add(value as object);
     return value;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Add an array of base tag
 /// </summary>
 /// <param name="values">base tag array</param>
 public void AddRange(FlvBaseTag[] values)
 {
     foreach(FlvBaseTag ip in values)
         Add(ip);
 }
Exemplo n.º 9
0
        /// <summary>
        /// Convert collection to array
        /// </summary>
        /// <returns>Base tags array</returns>
        public FlvBaseTag[] ToArray()
        {
            FlvBaseTag[] res = null;

            if (this.Count > 0)
            {
                res = new FlvBaseTag[this.Count];
                for (int i = 0; i < this.Count; i++)
                    res[i] = this[i];
            }
            return res;
        }
Exemplo n.º 10
0
 /// <summary>
 /// Remove a base tag
 /// </summary>
 /// <param name="value"></param>
 public void Remove(FlvBaseTag value)
 {
     if (List.Contains(value))
         List.Remove(value as object);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Insert a base tag at
 /// </summary>
 /// <param name="index">index</param>
 /// <param name="value">base tag</param>
 public void Insert(int index, FlvBaseTag value)
 {
     List.Insert(index, value as object);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Get index of a base tag
 /// </summary>
 /// <param name="value">base tag</param>
 /// <returns>base tag index if is contain, -1 else.</returns>
 public int IndexOf(FlvBaseTag value)
 {
     return List.IndexOf(value);
 }
Exemplo n.º 13
0
 /// <summary>
 /// Test if list contain a base tag
 /// </summary>
 /// <param name="value">base tag</param>
 /// <returns>contain result</returns>
 public bool Contains(FlvBaseTag value)
 {
     return List.Contains(value as object);
 }