// Decompiled with JetBrains decompiler // Type: System.Windows.Forms.ByteCollection // Assembly: FiestaShark, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null // MVID: 12469781-3753-4869-9C1A-117F1862B52C // Assembly location: E:\Fiesta\Emus\DragonFiesta\Tools\FiestaShark-Farbod\FiestaShark.exe using System.Collections; namespace System.Windows.Forms { public class ByteCollection : CollectionBase { public ByteCollection() { } public ByteCollection(byte[] bs) { this.AddRange(bs); } public byte this[int index] { get { return (byte) this.List[index]; } set { this.List[index] = (object) value; } } public void Add(byte b) { this.List.Add((object) b); } public void AddRange(byte[] bs) { this.InnerList.AddRange((ICollection) bs); } public void Remove(byte b) { this.List.Remove((object) b); } public void RemoveRange(int index, int count) { this.InnerList.RemoveRange(index, count); } public void InsertRange(int index, byte[] bs) { this.InnerList.InsertRange(index, (ICollection) bs); } public byte[] GetBytes() { byte[] numArray = new byte[this.Count]; this.InnerList.CopyTo(0, (Array) numArray, 0, numArray.Length); return numArray; } public void Insert(int index, byte b) { this.InnerList.Insert(index, (object) b); } public int IndexOf(byte b) { return this.InnerList.IndexOf((object) b); } public bool Contains(bool b) { return this.InnerList.Contains((object) b); } public void CopyTo(byte[] bs, int index) { this.InnerList.CopyTo((Array) bs, index); } public byte[] ToArray() { byte[] bs = new byte[this.Count]; this.CopyTo(bs, 0); return bs; } } }