#region Copyright (C) 2016 Kevin (OSS开源系列) 公众号:osscore
/***************************************************************************
* 文件功能描述:Http请求 == 参数实体
*
* 创建人: Kevin
* 创建人Email:1985088337@qq.com
*
*****************************************************************************/
#endregion
namespace OSS.Tools.Http
{
///
/// 表单参数
///
public struct NameValuePair
{
///
/// 构造函数
///
///
///
public NameValuePair(string name, object value)
{
this.name = name;
this.value = value;
//Type = type;
//Domain = string.Empty;
}
///
/// 参数名称
///
public string name;
///
/// 参数值
///
public object value;
///
/// 重写ToString返回 name=value编码后的格式
///
/// String
public override string ToString()
{
return $"{name}={value}";
}
}
}