internal static string ToSerializedValue(this QueryStringCachingBehavior value) { switch (value) { case QueryStringCachingBehavior.IgnoreQueryString: return("IgnoreQueryString"); case QueryStringCachingBehavior.BypassCaching: return("BypassCaching"); case QueryStringCachingBehavior.UseQueryString: return("UseQueryString"); case QueryStringCachingBehavior.NotSet: return("NotSet"); } return(null); }
///GENMHASH:18D91A64C4BA864D24E2DE4DD2523297:08F121BA4E95C8CA8A60DE2B6D8A259A public CdnEndpointImpl WithQueryStringCachingBehavior(QueryStringCachingBehavior cachingBehavior) { Inner.QueryStringCachingBehavior = cachingBehavior; return(this); }
/// <summary> /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider" /// /> and <see cref="ignoreCase" /> /// </summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <param name="formatProvider">not used by this TypeConverter.</param> /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param> /// <returns> /// an instance of <see cref="QueryStringCachingBehavior" />, or <c>null</c> if there is no suitable conversion. /// </returns> public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => QueryStringCachingBehavior.CreateFrom(sourceValue);
public static string ToSerialString(this QueryStringCachingBehavior value) => value switch {