public void AddSet(SetResizeImage resizeImage) { if (resizeImage == null) { throw new ArgumentException(); } if (Resize.Count == 10) { throw new Exception("Cannot exceed the quota of 10 instructions per request"); } // Internal use Resize.Add(resizeImage.Name, resizeImage); if (ResizeImage == null) { ResizeImage = new List <SetResizeImage>(); } this.ResizeImage.Add(resizeImage); }