public void SetListType(int listType) { if (listType == LIST_TYPE_NORMAL || listType == LIST_TYPE_SIMPLE || listType == LIST_TYPE_HYBRID ) { this.listType = listType; } else { throw new ArgumentException("Invalid listType value."); } }