Beispiel #1
0
 /// <summary>
 /// 获取POST表单
 /// </summary>
 /// <typeparam name="valueType">对象类型</typeparam>
 /// <param name="value">查询对象</param>
 /// <param name="filter">成员选择,默认为公共成员</param>
 /// <param name="memberMap">成员位图</param>
 /// <returns>POST表单</returns>
 public static NameValueCollection Get <valueType>(valueType value
                                                   , setup.memberFilter filter = setup.memberFilter.PublicInstance, memberMap <valueType> memberMap = default(memberMap <valueType>))
 {
     return(form <valueType> .Get(value, filter, memberMap));
 }
Beispiel #2
0
 /// <summary>
 /// 获取查询字符串
 /// </summary>
 /// <typeparam name="valueType">对象类型</typeparam>
 /// <param name="value">查询对象</param>
 /// <param name="encoding">编码格式</param>
 /// <param name="filter">成员选择,默认为公共成员</param>
 /// <param name="memberMap">成员位图</param>
 /// <returns>查询字符串</returns>
 public static string Get <valueType>(valueType value, Encoding encoding
                                      , setup.memberFilter filter = setup.memberFilter.PublicInstance, memberMap <valueType> memberMap = default(memberMap <valueType>))
 {
     return(query <valueType> .Get(value, encoding, filter, memberMap));
 }
Beispiel #3
0
 /// <summary>
 /// 获取查询字符串
 /// </summary>
 /// <param name="value">查询对象</param>
 /// <param name="encoding">编码格式</param>
 /// <param name="filter">成员选择,默认为公共成员</param>
 /// <returns>查询字符串</returns>
 public static string Get(object value, Encoding encoding, setup.memberFilter filter = setup.memberFilter.PublicInstance)
 {
     return(value != null?getter(value.GetType())(value, encoding, filter) : null);
 }
Beispiel #4
0
 /// <summary>
 /// 获取POST表单
 /// </summary>
 /// <param name="value">查询对象</param>
 /// <param name="filter">成员选择,默认为公共成员</param>
 /// <returns>POST表单</returns>
 public static NameValueCollection Get(object value, setup.memberFilter filter = setup.memberFilter.PublicInstance)
 {
     return(value != null?getter(value.GetType())(value, filter) : null);
 }