/// <summary>
 /// Validates this method
 /// </summary>
 /// <param name="validation">Validation</param>
 internal override void Validate(MethodValidationResult validation)
 {
     foreach (var p in _params)
     {
         p.Validate(validation.ValidateSubparameter(p.Type, p.ToString()));
     }
     if (_invoke == null)
     {
         validation.AddError($"{_name} has no backing delegate.");
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Validates thie method
 /// </summary>
 /// <param name="validation">Validation</param>
 internal override void Validate(MethodValidationResult validation)
 {
     foreach (var p in _params)
     {
         p.Validate(validation.ValidateSubparameter(p.Type, p.ToString()));
     }
     if (_expr == null)
     {
         validation.AddError($"{_name} has no linq expression.");
     }
 }