Exemplo n.º 1
0
        private static MethodDeclarationSyntax CreateMethodFromExceptionType(AttributeArgumentSyntax attributeArgument, MethodDeclarationSyntax node)
        {
            var exceptionType = attributeArgument.GetExceptionType();
            var rawStatement  = CreateAssert(exceptionType, node);

            return(ReplaceMethodBody(rawStatement, node));
        }