Show / Hide Table of Contents

Class TypeValues<T>

A class that stores information about the inheritance tree stored in a type dictionary.

Inheritance
object
TypeValues<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

true if this instance is ambiguous; otherwise, false.

IsDirect

Gets a value indicating whether the value is a direct type reference.

Declaration
public bool IsDirect { get; }
Property Value
Type Description
bool

true if the value is a direct type reference; otherwise, false.

IsEmpty

Gets a value indicating whether this instance is empty.

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
bool

true if this instance is empty; otherwise, false.

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 true, the value type is a direct reference (ie. not a child).

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

Extension Methods

Utility.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX