public static ListCreationParameters Create(string name, NewListParameters parameters) { if (name == null) { throw new ArgumentNullException("name"); } if (parameters == null) { throw new ArgumentNullException("parameters"); } return(new ListCreationParameters { Name = name, Description = parameters.Description, Template = parameters.Template }); }
public static ListCreationParameters Create(string name, NewListParameters parameters) { if (name == null) throw new ArgumentNullException("name"); if (parameters == null) throw new ArgumentNullException("parameters"); return new ListCreationParameters { Name = name, Description = parameters.Description, Template = parameters.Template }; }