Beispiel #1
0
 public SWAFItem(SWAFWrapper parent, SWAFItemType type)
 {
     this.parent = parent;
     if (!Enum.IsDefined(type.GetType(), type))
     {
         throw new ArgumentOutOfRangeException("type");
     }
     this.type = type;
 }
Beispiel #2
0
 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);
 }