コード例 #1
0
 /// <summary>
 /// Indicates whether this method is declared with the new keyword.
 /// </summary>
 /// <param name="declaration">
 /// The method to check.
 /// </param>
 /// <returns>
 /// <c>true</c> if the declaration is declared with new otherwise <c>false</c>.
 /// </returns>
 public static bool IsNew(this IMethodDeclaration declaration)
 {
     return(declaration != null && ModifiersUtil.GetNew(declaration as IModifiersListOwner));
 }