src/Foundation/Net/Gimela.Net.Http/Messages/ResponseCookie.cs
/// <summary>
/// Gets the cookie HTML representation.
/// </summary>
/// <returns>cookie string</returns>
Gets the cookie HTML representation.
Gets the cookie HTML representation .
public override string ToString()
    {
      string temp = string.Format("{0}={1}; ", HttpUtility.UrlEncode(Name), HttpUtility.UrlEncode(Value));
      if (_expires != DateTime.MinValue)
      {
        temp += string.Format("expires={0};", _expires.ToUniversalTime().ToString("r"));
      }
      if (!string.IsNullOrEmpty(_path))
        temp += string.Format("path={0}; ", _path);
      if (!string.IsNullOrEmpty(_domain))
        temp += string.Format("domain={0}; ", _domain);
      return temp;
    }
public override string ToString ( ) { string temp = string . Format ( " " , HttpUtility . UrlEncode ( Name ) , HttpUtility . UrlEncode ( Value ) ) ; if ( _expires != DateTime . MinValue ) { temp += string . Format ( " " , _expires . ToUniversalTime ( ) . ToString ( " " ) ) ; } if ( ! string . IsNullOrEmpty ( _path ) ) temp += string . Format ( " " , _path ) ; if ( ! string . IsNullOrEmpty ( _domain ) ) temp += string . Format ( " " , _domain ) ; return temp ; }
Gets the cookie HTML representation.
Gets the cookie HTML representation .
// Fixed by Albert, Team MediaPortal
None