ABB.Swum.ConstructorRule.InClass C# (CSharp) Method

InClass() public method

Determines whether the supplied node meets the criteria for this rule.
public InClass ( ProgramElementNode node ) : bool
node ABB.Swum.Nodes.ProgramElementNode The node to test.
return bool
        public override bool InClass(ProgramElementNode node)
        {
            return (node is MethodDeclarationNode) && ((MethodDeclarationNode)node).Context != null && ((MethodDeclarationNode)node).Context.IsConstructor;
        }