Interface IPrimitive<T>
This interface is implemented by all source generated Primitively types. It provides a generic interface for encapsulating a value of a specific .NET primitive type.
Namespace: Primitively
Assembly: Primitively.Abstractions.dll
Syntax
public interface IPrimitive<out T> : IPrimitive
Type Parameters
Name | Description |
---|---|
T | The .NET primitive type of the encapsulated value |
Properties
Value
Gets the value encapsulated by the instance.
Declaration
T Value { get; }
Property Value
Type | Description |
---|---|
T | The value encapsulated by the instance. |
Remarks
Attempts to instantiate a Primitively type with an invalid value will result in a default instance.