Files
2021-08-20 12:17:47 +08:00

56 lines
1.3 KiB
C#
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#region Copyright (C) 2016 Kevin (OSS开源系列) 公众号:osscore
/***************************************************************************
*   文件功能描述:Http请求 == 参数实体
*
*   创建人: Kevin
* 创建人Email:1985088337@qq.com
*
*****************************************************************************/
#endregion
namespace OSS.Tools.Http
{
/// <summary>
/// 表单参数
/// </summary>
public struct NameValuePair
{
/// <summary>
/// 构造函数
/// </summary>
/// <param name="name"></param>
/// <param name="value"></param>
public NameValuePair(string name, object value)
{
this.name = name;
this.value = value;
//Type = type;
//Domain = string.Empty;
}
/// <summary>
/// 参数名称
/// </summary>
public string name;
/// <summary>
/// 参数值
/// </summary>
public object value;
/// <summary>
/// 重写ToString返回 name=value编码后的格式
/// </summary>
/// <returns>String</returns>
public override string ToString()
{
return $"{name}={value}";
}
}
}