public SWAFItem(SWAFWrapper parent, SWAFItemType type) { this.parent = parent; if (!Enum.IsDefined(type.GetType(), type)) { throw new ArgumentOutOfRangeException("type"); } this.type = type; }
internal SWAFItem(SWAFWrapper parent, SWAFItemType type, System.IO.BinaryReader reader) { this.parent = parent; if (!Enum.IsDefined(type.GetType(), type)) { throw new ArgumentOutOfRangeException("type"); } this.type = type; Unserialize(reader); }