Exemplo n.º 1
0
 /// <summary>
 ///   Gets the <see cref="EventInfo"/> corresponding to the given
 ///   <paramref name="symbol"/>.
 /// </summary>
 public static EventInfo GetCorrespondingEvent(this IEventSymbol symbol)
 {
     return(symbol.ContainingType.GetCorrespondingType().GetEvent(symbol.Name, symbol.GetCorrespondingBindingFlags()));
 }