PeterO.Mail.StringAndQuality
## PeterO.Mail.StringAndQuality
public sealed class StringAndQuality
Stores an arbitrary string and a “quality value” for that string. For instance, the string can be a language tag, and the “quality value” can be the degree of preference for that language.
Member Summary
[Quality](#Quality)
- Gets the quality value stored by this object.[Value](#Value)
- Gets the arbitrary string stored by this object.
### StringAndQuality Constructor
public StringAndQuality( string value, int quality);
Initializes a new instance of the PeterO.Mail.StringAndQuality class.
Parameters:
-
value: An arbitrary text string.
-
quality: A 32-bit signed integer serving as the “quality” value.
public int Quality { get; }
Gets the quality value stored by this object.
Returns:
The quality value stored by this object.
public string Value { get; }
Gets the arbitrary string stored by this object.
Returns:
The arbitrary string stored by this object.