static public void CheckException(Scaffold SC) { if (SC == null) { throw new ArgumentNullException("SC"); } if (SC.rowsAndColumns == null) { throw new ArgumentException("SC.dic"); } if (SC.rowsAndColumns.Count == 0) { throw new ArgumentException("Scaffold Dictionary must contain one or more items."); } }