Show / Hide Table of Contents

Class DependsOnSubMemberAttribute

An override for fody's 'DependsOn' attirbute that allows watching a specific sub prop, and the prop or subprop could either be events. NOTE: If you are watching subproperties on a getter-only property, the sub properties wont start tracking until the first property change notification goes out for that root property. Youll need to manually make sure this happens, or set up its dependencies to detect other members changing and do its initialization there. See wiki guide here: https://github.com/StrangeLoopGames/Eco/wiki/Watching-System ///

Inheritance
System.Object
WatchBaseAttribute
DependsOnMemberBaseAttribute
DependsOnSubMemberAttribute
Inherited Members
DependsOnMemberBaseAttribute.GetCallback(MemberInfo, Type)
WatchBaseAttribute.MemberName
WatchBaseAttribute.WatchAllMembers
WatchBaseAttribute.SubMemberName
WatchBaseAttribute.WatchAllSubMembers
WatchBaseAttribute.MemberTypeMustDerive
WatchBaseAttribute.OverridenType
WatchBaseAttribute.GetRootTypeAndMember(MemberInfo)
WatchBaseAttribute.GetWatchedPropType(MemberInfo)
WatchBaseAttribute.GetWatchedSubMember(MemberInfo)
WatchBaseAttribute.GetWatchedSubPropType(MemberInfo)
WatchBaseAttribute.ObjectIsExpectedType(Object)
WatchBaseAttribute.PassEventFirstParamToCallback(Type, Type)
Namespace: Eco.Core.PropertyHandling
Assembly: Eco.Core.dll
Syntax
public class DependsOnSubMemberAttribute : DependsOnMemberBaseAttribute

Constructors

DependsOnSubMemberAttribute(Boolean)

Declaration
public DependsOnSubMemberAttribute(bool watchAllSubProps)
Parameters
Type Name Description
System.Boolean watchAllSubProps

DependsOnSubMemberAttribute(String)

Declaration
public DependsOnSubMemberAttribute(string subPropName)
Parameters
Type Name Description
System.String subPropName

DependsOnSubMemberAttribute(String, Boolean)

Declaration
public DependsOnSubMemberAttribute(string propName, bool watchAllSubProps)
Parameters
Type Name Description
System.String propName
System.Boolean watchAllSubProps

DependsOnSubMemberAttribute(String, String)

Declaration
public DependsOnSubMemberAttribute(string propName, string subPropName)
Parameters
Type Name Description
System.String propName
System.String subPropName

DependsOnSubMemberAttribute(String, String, Type)

Declaration
public DependsOnSubMemberAttribute(string propName, string subPropName, Type mustDerive)
Parameters
Type Name Description
System.String propName
System.String subPropName
System.Type mustDerive

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
☀
☾