Show / Hide Table of Contents

Class CustomPropertyAccessor<T>

Used for accessing a property on a GlobalSettings object, where the getter and setters can be customized

Inheritance
object
CustomPropertyAccessor_Base
CustomPropertyAccessor<T>
Implements
IAccessor
Inherited Members
CustomPropertyAccessor_Base.Panel
CustomPropertyAccessor_Base._description
CustomPropertyAccessor_Base._displayName
CustomPropertyAccessor_Base.FieldName
CustomPropertyAccessor_Base.Description
CustomPropertyAccessor_Base.MemberInfo
Namespace: WeaverCore.Settings
Assembly: WeaverCore.dll
Syntax
public class CustomPropertyAccessor<T> : CustomPropertyAccessor_Base, IAccessor
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

CustomPropertyAccessor(GlobalSettings, Func<T>, Action<T>, string, string)

Declaration
public CustomPropertyAccessor(GlobalSettings panel, Func<T> getter, Action<T> setter, string displayName, string description)
Parameters
Type Name Description
GlobalSettings panel
Func<T> getter
Action<T> setter
string displayName
string description

Fields

| Edit this page View Source

Getter

Declaration
public readonly Func<T> Getter
Field Value
Type Description
Func<T>
| Edit this page View Source

Setter

Declaration
public readonly Action<T> Setter
Field Value
Type Description
Action<T>

Properties

| Edit this page View Source

FieldValue

The value of the member field

Declaration
public override object FieldValue { get; set; }
Property Value
Type Description
object
Overrides
CustomPropertyAccessor_Base.FieldValue
| Edit this page View Source

MemberType

The type of member this accessor is using

Declaration
public override Type MemberType { get; }
Property Value
Type Description
Type
Overrides
CustomPropertyAccessor_Base.MemberType

Implements

IAccessor

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾