Example #1
0
 private static void writePropertyDocComment(TextWriter writer, WebItemParameter parameter)
 {
     CodeGenerationStatics.AddSummaryDocComment(
         writer,
         "Gets or sets the new value for the " + parameter.Name + " parameter." +
         (parameter.IsString || parameter.IsEnumerable ? " The value cannot be null." : ""));
 }
Example #2
0
 private static string getSpecifiableParameterValueSelector(WebItemParameter p) => p.IsString || p.IsEnumerable ? "" : ".Value";
Example #3
0
 private static string getSpecifiableParameterType(WebItemParameter p) =>
 p.IsString || p.IsEnumerable ? p.TypeName : "SpecifiedValue<{0}>".FormatWith(p.TypeName);
Example #4
0
 public static string GetWasSpecifiedPropertyName(WebItemParameter parameter)
 {
     return(parameter.PropertyName + "WasSpecified");
 }