コード例 #1
0
 private void Add()
 {
     if (!string.IsNullOrWhiteSpace(PropertyType) && !string.IsNullOrWhiteSpace(PropertyName) && AdditionalProperties.All(e => e.Name != PropertyName))
     {
         AdditionalProperties.Add(new ModelAdditionalProperty
         {
             Type = PropertyType,
             Name = PropertyName
         });
         PropertyName = string.Empty;
     }
 }