wasSharp
/Web/QValueParsing.cs |
@@ -56,7 +56,7 @@ |
private float _weight; |
private int _ordinal; |
|
#endregion |
#endregion Fields |
|
#region Constructors |
|
@@ -89,7 +89,7 @@ |
ParseInternal(ref this, value); |
} |
|
#endregion |
#endregion Constructors |
|
#region Properties |
|
@@ -114,7 +114,7 @@ |
/// </summary> |
public bool IsEmpty => string.IsNullOrEmpty(Name); |
|
#endregion |
#endregion Properties |
|
#region Methods |
|
@@ -165,7 +165,7 @@ |
} |
} |
|
#endregion |
#endregion Methods |
|
#region IComparable<QValue> Members |
|
@@ -186,7 +186,7 @@ |
return value; |
} |
|
#endregion |
#endregion IComparable<QValue> Members |
|
#region CompareByWeight |
|
@@ -212,7 +212,7 @@ |
return -x.CompareTo(y); |
} |
|
#endregion |
#endregion CompareByWeight |
} |
|
/// <summary> |
@@ -241,7 +241,7 @@ |
applyAutoSort(); |
} |
|
#endregion |
#endregion Add |
|
#region AddRange |
|
@@ -261,7 +261,7 @@ |
applyAutoSort(); |
} |
|
#endregion |
#endregion AddRange |
|
#region Find |
|
@@ -277,7 +277,7 @@ |
return Find(criteria); |
} |
|
#endregion |
#endregion Find |
|
#region FindHighestWeight |
|
@@ -297,7 +297,7 @@ |
return Find(criteria); |
} |
|
#endregion |
#endregion FindHighestWeight |
|
#region FindPreferred |
|
@@ -318,7 +318,7 @@ |
return Find(criteria); |
} |
|
#endregion |
#endregion FindPreferred |
|
#region DefaultSort |
|
@@ -331,7 +331,7 @@ |
Sort(QValue.CompareByWeightDesc); |
} |
|
#endregion |
#endregion DefaultSort |
|
#region applyAutoSort |
|
@@ -345,7 +345,7 @@ |
DefaultSort(); |
} |
|
#endregion |
#endregion applyAutoSort |
|
#region isCandidate |
|
@@ -366,12 +366,8 @@ |
return false; |
} |
|
#endregion |
#endregion isCandidate |
|
#region Fields |
|
#endregion |
|
#region Constructors |
|
/// <summary> |
@@ -413,7 +409,7 @@ |
AutoSort = true; |
} |
|
#endregion |
#endregion Constructors |
|
#region Properties |
|
@@ -434,6 +430,6 @@ |
/// <returns>An QValue based on weight, or null</returns> |
public QValue this[params string[] candidates] => FindPreferred(candidates); |
|
#endregion |
#endregion Properties |
} |
} |
} |
/Web/wasHTTPClient.cs |
@@ -70,6 +70,7 @@ |
case false: |
headers = new Dictionary<string, string> {{"Accept", @"*/*"}}; |
break; |
|
default: |
if (!headers.ContainsKey("Accept")) |
{ |