You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@ -134,9 +134,11 @@ namespace System.Net.Http.Headers
|
||||
this.HeaderKind = headerKind;
|
||||
}
|
||||
|
||||
public static HeaderInfo CreateSingle<T> (string name, TryParseDelegate<T> parser, HttpHeaderKind headerKind)
|
||||
public static HeaderInfo CreateSingle<T> (string name, TryParseDelegate<T> parser, HttpHeaderKind headerKind, Func<object, string> toString = null)
|
||||
{
|
||||
return new HeaderTypeInfo<T, object> (name, parser, headerKind);
|
||||
return new HeaderTypeInfo<T, object> (name, parser, headerKind) {
|
||||
CustomToString = toString
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
@ -152,6 +154,10 @@ namespace System.Net.Http.Headers
|
||||
return CreateCollection (headers, this);
|
||||
}
|
||||
|
||||
public Func<object, string> CustomToString {
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public virtual string Separator {
|
||||
get {
|
||||
// Needed for AllowsMany only
|
||||
|
Reference in New Issue
Block a user