Table of Contents

Class Property<T>

Namespace
CMS.Base
Assembly
CMS.Base.dll

Defines a property implementation

public class Property<T>

Type Parameters

T
Inheritance
object
Property<T>
Extension Methods

Constructors

Property()

Constructor

public Property()

Property(Func<T>, Action<T>)

Constructor

public Property(Func<T> getter, Action<T> setter)

Parameters

getter Func<T>

Property getter

setter Action<T>

Property setter

Properties

Getter

Property getter

public Func<T> Getter { get; set; }

Property Value

Func<T>

InnerValue

Inner property value

protected T InnerValue { get; set; }

Property Value

T

Setter

Property setter

public Action<T> Setter { get; set; }

Property Value

Action<T>

Value

Property value

public T Value { get; set; }

Property Value

T

Operators

implicit operator T(Property<T>)

Implicit conversion operator to property value

public static implicit operator T(Property<T> prop)

Parameters

prop Property<T>

Property

Returns

T