Class LabelAndValue
Single label and its value, usually contained in a
FacetResult.
Inheritance
System.Object
LabelAndValue
Implements
System.IFormattable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Lucene.Net.Facet.dll
Syntax
public sealed class LabelAndValue : IFormattable
Constructors
|
Improve this Doc
View Source
LabelAndValue(String, Int32)
Constructor for System.Int32 value
. Makes the ToString() method
print the value
as an System.Int32 with no decimal.
Declaration
public LabelAndValue(string label, int value)
Parameters
Type |
Name |
Description |
System.String |
label |
|
System.Int32 |
value |
|
|
Improve this Doc
View Source
LabelAndValue(String, Single)
Constructor for System.Single value
. Makes the ToString() method
print the value
as a System.Single with at least 1 number after the decimal.
Declaration
public LabelAndValue(string label, float value)
Parameters
Type |
Name |
Description |
System.String |
label |
|
System.Single |
value |
|
Properties
|
Improve this Doc
View Source
Label
Declaration
public string Label { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TypeOfValue
The original data type of Value that was passed through the constructor.
Declaration
public Type TypeOfValue { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
Value
Value associated with this label.
Declaration
public float Value { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
The string representation of the label and value of this instance.
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Converts the value of this instance to its equivalent string representation
using the specified culture-specific format information.
Declaration
public string ToString(IFormatProvider provider)
Parameters
Type |
Name |
Description |
System.IFormatProvider |
provider |
|
Returns
Type |
Description |
System.String |
The string representation of the label and value of this instance
as specified by provider .
|
Explicit Interface Implementations
|
Improve this Doc
View Source
Declaration
string IFormattable.ToString(string format, IFormatProvider provider)
Parameters
Type |
Name |
Description |
System.String |
format |
|
System.IFormatProvider |
provider |
|
Returns
Type |
Description |
System.String |
|
Implements
System.IFormattable