コード例 #1
0
        public static bool CanRefactor(EventFieldDeclarationSyntax eventFieldDeclaration)
        {
            if (eventFieldDeclaration == null)
            {
                throw new ArgumentNullException(nameof(eventFieldDeclaration));
            }

            return(!eventFieldDeclaration.IsStatic() &&
                   IsStaticClass(eventFieldDeclaration.Parent));
        }
コード例 #2
0
 public static bool CanRefactor(EventFieldDeclarationSyntax eventFieldDeclaration)
 {
     return(!eventFieldDeclaration.IsStatic() &&
            IsStaticClass(eventFieldDeclaration.Parent));
 }