Exemple #1
0
 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
     });
 }
Exemple #2
0
 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
     };
 }