private static void CheckSameSiteBackwardsCompatiblity(HttpContext httpContext, CookieOptions options) { V_1 = httpContext.get_Request().get_Headers().get_Item("User-Agent"); V_0 = V_1.ToString(); if (options.get_SameSite() == null) { if (string.IsNullOrEmpty(V_0)) { return; } if (V_0.Contains("CPU iPhone OS 12") || V_0.Contains("iPad; CPU OS 12")) { options.set_SameSite(-1); return; } if (V_0.Contains("Macintosh; Intel Mac OS X 10_14") && V_0.Contains("Version/") && V_0.Contains("Safari")) { options.set_SameSite(-1); return; } if (V_0.Contains("Chrome/5") || V_0.Contains("Chrome/6")) { options.set_SameSite(-1); } } return; }
public static bool IsPreRelease(Assembly assembly) { V_0 = assembly.GetCustomAttribute <AssemblyInformationalVersionAttribute>().get_InformationalVersion().ToLower(); if (V_0.Contains("alpha")) { return(true); } return(V_0.Contains("beta")); }
private string GetFriendlyGenericName(TypeReference typeReference) { V_0 = typeReference.GetFriendlyTypeName(null, "<", ">"); if (V_0.Contains("<")) { V_0 = V_0.Substring(0, V_0.IndexOf('<')); } return(V_0); }
private string GetMethodName(MethodDefinition method) { V_0 = method.GetFriendlyMemberName(null); if (V_0.Contains("<")) { V_0 = V_0.Substring(0, V_0.IndexOf("<")); } if (method.get_IsGetter() && V_0.IndexOf("get_") == 0 || method.get_IsSetter() && V_0.IndexOf("set_") == 0) { return(V_0.Substring(4)); } if (!method.get_IsConstructor()) { return(V_0); } return(method.get_DeclaringType().GetFriendlyTypeName(this.context.get_Language(), "<", ">")); }
private void ExpandLoopBody(IntervalConstruct interval, HashSet <ILogicalConstruct> loopBody, ILogicalConstruct loopSuccessor) { V_0 = this.GetIntervalSuccessors(interval, loopSuccessor); dummyVar0 = V_0.Add(loopSuccessor); V_1 = interval.get_Children().GetEnumerator(); try { while (V_1.MoveNext()) { V_2 = (LogicalConstructBase)V_1.get_Current(); if (V_0.Contains(V_2)) { continue; } dummyVar1 = loopBody.Add(V_2); } } finally { ((IDisposable)V_1).Dispose(); } return; }