System.CodeDom.Compiler.CodeValidator.ValidateMethod C# (CSharp) Method

ValidateMethod() private method

private ValidateMethod ( CodeMemberMethod e ) : void
e System.CodeDom.CodeMemberMethod
return void
        private void ValidateMethod(CodeMemberMethod e) {            

            if (e.CustomAttributes.Count > 0) {
                ValidateAttributes(e.CustomAttributes);
            }
            if (e.ReturnTypeCustomAttributes.Count > 0) {
                ValidateAttributes(e.ReturnTypeCustomAttributes);
            }

            ValidateTypeReference(e.ReturnType);
            if (e.PrivateImplementationType != null) {
                ValidateTypeReference(e.PrivateImplementationType);
            }

            ValidateIdentifier(e,"Name",e.Name);
            ValidateParameters(e.Parameters);
        
            if (!IsCurrentInterface 
                && (e.Attributes & MemberAttributes.ScopeMask) != MemberAttributes.Abstract) {
                ValidateStatements(e.Statements);
            }
        }
CodeValidator