Пример #1
0
 /// <summary>
 /// Gets the custom attribute instance from the parameter definition, or null.
 /// </summary>
 /// <returns>The custom attribute.</returns>
 /// <param name="td">The type parameter to examine.</param>
 /// <typeparam name="T">The type of attribute to find.</typeparam>
 public static CustomAttribute GetAttribute <T>(this ParameterDefinition td)
 {
     return(td.GetAttribute(typeof(T)));
 }