/// <summary>
 /// Adds the advice and returns a new AspectInfo.
 /// </summary>
 /// <param name="adviceInfo">The advice information.</param>
 /// <returns></returns>
 public AspectInfo AddAdvice(AdviceInfo adviceInfo)
 {
     return(new AspectInfo(Advices.Concat(new[] { adviceInfo }), PointcutMethod, PointcutMethodHandle, AdvisedMethod, AdvisedMethodHandle, PointcutProperty, IsPointcutPropertySetter, PointcutEvent, IsPointcutEventAdder));
 }
Exemple #2
0
 /// <summary>
 /// Adds the advice and returns a new AspectInfo.
 /// </summary>
 /// <param name="adviceInfo">The advice information.</param>
 /// <returns></returns>
 public AspectInfo AddAdvice(AdviceInfo adviceInfo)
 {
     return new AspectInfo(Advices.Concat(new[] { adviceInfo }), PointcutMethod, AdvisedMethod, PointcutProperty, IsPointcutPropertySetter);
 }