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
parameter
stringThe name of the parameter with the dependency
member
stringThe 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
parameter
stringThe name of the parameter with the dependency
member
stringThe member that is accessed
isNested
boolTrue, 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; }