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