Example #1
0
        public static bool CanRefactor(EventDeclarationSyntax eventDeclaration)
        {
            if (eventDeclaration == null)
            {
                throw new ArgumentNullException(nameof(eventDeclaration));
            }

            return(!eventDeclaration.IsStatic() &&
                   IsStaticClass(eventDeclaration.Parent));
        }
Example #2
0
 public static bool CanRefactor(EventDeclarationSyntax eventDeclaration)
 {
     return(!eventDeclaration.IsStatic() &&
            IsStaticClass(eventDeclaration.Parent));
 }