public Category[] GetCategories() { if (this.categories == null) { try { this.categories = SmugMugProxy.GetCategories(credentials.SessionID); } catch (Exception ex) { throw new SmugMugException("Could not retrieve Categories", ex.InnerException); } } return(this.categories); }