예제 #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." : ""));
 }
예제 #2
0
 private static string getSpecifiableParameterValueSelector(WebItemParameter p) => p.IsString || p.IsEnumerable ? "" : ".Value";
예제 #3
0
 private static string getSpecifiableParameterType(WebItemParameter p) =>
 p.IsString || p.IsEnumerable ? p.TypeName : "SpecifiedValue<{0}>".FormatWith(p.TypeName);
예제 #4
0
 public static string GetWasSpecifiedPropertyName(WebItemParameter parameter)
 {
     return(parameter.PropertyName + "WasSpecified");
 }