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
DependsOnSubMemberAttribute
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