Show / Hide Table of Contents

Class ControllerPropertyNameAttribute

Attribute marking a parameter as a controller property name for static analysis (i.e. ControllerSubscribeAnalyzer). Requires controller passed as an another parameter of same method. By default uses previous parameter as controller, but the controller parameter may be explicitly specified with optional ControllerParameterName property. A property with the attribute should exists on subject and have sync attributes like [SyncToView] or [Eco]. If property isn't constant (string literal) then it should be either parameter reference for a parameter with ControllerPropertyNameAttribute or should be suppressed with disable warning or SuppressMessage attribute.

Inheritance
System.Object
ControllerPropertyNameAttribute
Namespace: Eco.Core.Controller
Assembly: Eco.Core.dll
Syntax
public class ControllerPropertyNameAttribute : Attribute

Constructors

ControllerPropertyNameAttribute(String)

Declaration
public ControllerPropertyNameAttribute(string controllerParameterName = null)
Parameters
Type Name Description
System.String controllerParameterName

Properties

ControllerParameterName

Declaration
public string ControllerParameterName { get; }
Property Value
Type Description
System.String

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾