OpenQA.Selenium.Internal.ReturnedCookie.ToString C# (CSharp) Method

ToString() public method

Creates and returns a string representation of the current cookie.
public ToString ( ) : string
return string
        public override string ToString()
        {
            return Name + "=" + Value
                + (Expiry == null ? string.Empty : "; expires=" + Expiry.Value.ToUniversalTime().ToString("ddd MM/dd/yyyy HH:mm:ss UTC", CultureInfo.InvariantCulture))
                    + (string.IsNullOrEmpty(Path) ? string.Empty : "; path=" + Path)
                    + (string.IsNullOrEmpty(Domain) ? string.Empty : "; domain=" + Domain)
                    + (isSecure ? ";secure;" : string.Empty);
        }