Class ParameterDependencyAttribute
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.Models.dll
Declares that the method will access a given property of the given named parameter
[AttributeUsage(AttributeTargets.Method)]
public class ParameterDependencyAttribute : Attribute
- Inheritance
-
ParameterDependencyAttribute
- Inherited Members
- Extension Methods
Constructors
ParameterDependencyAttribute(string, string)
Declares that the method will access a given property of the given named parameter
public ParameterDependencyAttribute(string parameter, string member)
Parameters
parameterstringThe name of the parameter with the dependency
memberstringThe member that is accessed
ParameterDependencyAttribute(string, string, bool)
Declares that the method will access a given property of the given named parameter
public ParameterDependencyAttribute(string parameter, string member, bool isNested)
Parameters
parameterstringThe name of the parameter with the dependency
memberstringThe member that is accessed
isNestedboolTrue, if all nested properties should also be watched for, otherwise False
Properties
IsNestedMember
True, if all nested properties should also be watched for, otherwise False
public bool IsNestedMember { get; }
Property Value
Member
The member that is accessed
public string Member { get; set; }
Property Value
Parameter
The name of the parameter with the dependency
public string Parameter { get; }