Example #1
0
 /// <summary>
 /// Construct a new <see cref="PropertyMatchData"/> instance.
 /// </summary>
 /// <param name="match">Property name pattern to match.</param>
 /// <param name="option">Which of the property methods to match. See <see cref="PropertyMatchingOption"/>
 /// for the valid options.</param>
 public PropertyMatchData(string match, PropertyMatchingOption option) : base(match)
 {
     MatchOption = option;
 }
Example #2
0
 /// <summary>
 /// Construct a new <see cref="PropertyMatchData"/> instance.
 /// </summary>
 /// <param name="match">Property name pattern to match.</param>
 /// <param name="option">Which of the property methods to match. See <see cref="PropertyMatchingOption"/>
 /// for the valid options.</param>
 /// <param name="ignoreCase">If false, type name comparisons are case sensitive. If true,
 /// comparisons are case insensitive.</param>
 public PropertyMatchData(string match, PropertyMatchingOption option, bool ignoreCase)
     : base(match, ignoreCase)
 {
     MatchOption = option;
 }
Example #3
0
 /// <summary>
 /// Constructs a new <see cref="PropertyMatchingRule"/> that matches the
 /// given method of the given property.
 /// </summary>
 /// <param name="propertyName">Name of the property. Name comparison is case sensitive. Wildcards are allowed.</param>
 /// <param name="option">Match the getter, setter, or both.</param>
 public PropertyMatchingRule(string propertyName, PropertyMatchingOption option)
     : this(propertyName, option, false)
 {
 }
Example #4
0
 /// <summary>
 /// Constructs a new <see cref="PropertyMatchingRule"/> that matches the
 /// given method of the given property.
 /// </summary>
 /// <param name="propertyName">Name of the property to match. Wildcards are allowed.</param>
 /// <param name="option">Match the getter, setter, or both.</param>
 /// <param name="ignoreCase">If false, name comparison is case sensitive. If true, name comparison is case insensitive.</param>
 public PropertyMatchingRule(string propertyName, PropertyMatchingOption option, bool ignoreCase)
     : this(new PropertyMatchingInfo[] { new PropertyMatchingInfo(propertyName, option, ignoreCase) })
 {
 }
Example #5
0
 /// <summary>
 /// Constructs a new <see cref="PropertyMatchingInfo"/> that matches the given methods of
 /// the given property name, doing a case-sensitive comparison.
 /// </summary>
 /// <param name="match">Property name to match.</param>
 /// <param name="option"><see cref="PropertyMatchingOption"/> specifying which methods of the property to match.</param>
 public PropertyMatchingInfo(string match, PropertyMatchingOption option) : this(match, option, false)
 {
 }
Example #6
0
 /// <summary>
 /// Construt a new <see cref="PropertyMatchingInfo"/> that matches the given methods of
 /// the given property name.
 /// </summary>
 /// <param name="match">Property name to match.</param>
 /// <param name="option"><see cref="PropertyMatchingOption"/> specifying which methods of the property to match.</param>
 /// <param name="ignoreCase">If false, name comparison is case sensitive. If true, name comparison is case insensitive.</param>
 public PropertyMatchingInfo(string match, PropertyMatchingOption option, bool ignoreCase)
     : base(match, ignoreCase)
 {
     this.option = option;
 }
Example #7
0
 /// <summary>
 /// Construct a new <see cref="PropertyMatchingInfo"/> that matches the given methods of
 /// the given property name.
 /// </summary>
 /// <param name="match">Property name to match.</param>
 /// <param name="option"><see cref="PropertyMatchingOption"/> specifying which methods of the property to match.</param>
 /// <param name="ignoreCase">If false, name comparison is case sensitive. If true, name comparison is case insensitive.</param>
 public PropertyMatchingInfo(string match, PropertyMatchingOption option, bool ignoreCase)
     : base(match, ignoreCase)
 {
     this.option = option;
 }
Example #8
0
 /// <summary>
 /// Constructs a new <see cref="PropertyMatchingInfo"/> that matches the given methods of
 /// the given property name, doing a case-sensitive comparison.
 /// </summary>
 /// <param name="match">Property name to match.</param>
 /// <param name="option"><see cref="PropertyMatchingOption"/> specifying which methods of the property to match.</param>
 public PropertyMatchingInfo(string match, PropertyMatchingOption option)
     : this(match, option, false)
 {
 }
Example #9
0
 /// <summary>
 /// Constructs a new <see cref="PropertyMatchingRule"/> that matches the
 /// given method of the given property.
 /// </summary>
 /// <param name="propertyName">Name of the property to match. Wildcards are allowed.</param>
 /// <param name="option">Match the getter, setter, or both.</param>
 /// <param name="ignoreCase">If false, name comparison is case sensitive. If true, name comparison is case insensitive.</param>
 public PropertyMatchingRule(string propertyName, PropertyMatchingOption option, bool ignoreCase)
     : this(new PropertyMatchingInfo[] { new PropertyMatchingInfo(propertyName, option, ignoreCase)})
 {
 }
Example #10
0
 /// <summary>
 /// Constructs a new <see cref="PropertyMatchingRule"/> that matches the
 /// given method of the given property.
 /// </summary>
 /// <param name="propertyName">Name of the property. Name comparison is case sensitive. Wildcards are allowed.</param>
 /// <param name="option">Match the getter, setter, or both.</param>
 public PropertyMatchingRule(string propertyName, PropertyMatchingOption option)
     : this(propertyName, option, false)
 {
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMatch"/> class with the supplied values.
 /// </summary>
 /// <param name="match">The string to match the property name.</param>
 /// <param name="ignoreCase">The indication of whether matching should be case-insensitive.</param>
 /// <param name="matchOption">The <see cref="PropertyMatchingOption"/> indicating how matching should be performed.</param>
 public PropertyMatch(string match, bool ignoreCase, PropertyMatchingOption matchOption)
     : base(match, ignoreCase)
 {
     this.matchOption = matchOption;
 }