﻿// Decompiled with JetBrains decompiler
// Type: System.Net.Comparer
// Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 5ABD58FD-DF31-44FD-A492-63F2B47CC9AF
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll

using System;
using System.Collections;
using System.Runtime;

namespace System.Net
{
  internal class Comparer : IComparer
  {
    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    public Comparer()
    {
    }

    int IComparer.Compare(object ol, object or)
    {
      Cookie cookie1 = (Cookie) ol;
      Cookie cookie2 = (Cookie) or;
      int num1;
      if ((num1 = string.Compare(cookie1.Name, cookie2.Name, StringComparison.OrdinalIgnoreCase)) != 0)
        return num1;
      int num2;
      if ((num2 = string.Compare(cookie1.Domain, cookie2.Domain, StringComparison.OrdinalIgnoreCase)) != 0)
        return num2;
      int num3;
      if ((num3 = string.Compare(cookie1.Path, cookie2.Path, StringComparison.Ordinal)) != 0)
        return num3;
      return 0;
    }
  }
}
