Class TypeValues<T>
A class that stores information about the inheritance tree stored in a type dictionary.
Inherited Members
Namespace: SpiceSharp.General
Assembly: SpiceSharp.dll
Syntax
public class TypeValues<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
TypeValues()
Initializes a new instance of the TypeValues<T> class.
Declaration
public TypeValues()
Properties
Count
Gets the number of values.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The count. |
IsAmbiguous
Gets a value indicating whether this instance is ambiguous.
Declaration
public bool IsAmbiguous { get; }
Property Value
Type | Description |
---|---|
bool |
|
IsDirect
Gets a value indicating whether the value is a direct type reference.
Declaration
public bool IsDirect { get; }
Property Value
Type | Description |
---|---|
bool |
|
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
|
Value
Gets the associated value.
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T | The value. |
Values
Enumerates all values.
Declaration
public IEnumerable<T> Values { get; }
Property Value
Type | Description |
---|---|
IEnumerable<T> | The values. |
Methods
Add(T, bool)
Adds the specified value to the type values.
Declaration
public void Add(T value, bool isDirect = false)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
bool | isDirect | if set to |
Remove(T)
Removes the specified value from the type values.
Declaration
public bool Remove(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
Returns
Type | Description |
---|---|
bool |