Class Fact
Represents a single XBRL fact value (numeric or non-numeric) associated with a concept.
public class Fact : XbrlItem
- Inheritance
-
Fact
- Derived
- Inherited Members
Constructors
Fact(DiscoverableTaxonomySet, XElement)
Initializes a new instance of the Fact class.
public Fact(DiscoverableTaxonomySet dts, XElement xml)
Parameters
dtsDiscoverableTaxonomySetThe discoverable taxonomy set this fact belongs to.
xmlXElementThe XML element representing this fact.
Properties
Concept
Gets the concept definition for this fact.
public required Concept Concept { get; init; }
Property Value
Context
Gets the context associated with this fact. For tuples this may be null.
public required Context? Context { get; init; }
Property Value
Remarks
Tuple facts do not have a context; non-tuple facts will have a context.
Decimals
Gets the value of the decimals attribute, if provided.
public required int? Decimals { get; init; }
Property Value
- int?
Nil
Gets a value indicating whether the fact is explicitly marked as nil (xsi:nil="true").
public required bool Nil { get; init; }
Property Value
Unit
Gets the unit associated with this fact, if any (for numeric facts).
public required Unit? Unit { get; init; }
Property Value
Value
Gets the textual value of the fact, or null if the fact is nil.
public required string? Value { get; init; }