예제 #1
0
        private bool IsMethodSupported(MethodDefinition methodDefinition)
        {
            bool isDestructor = DocUtils.IsDestructor(methodDefinition);

            return
                (!DocUtils.IsOperator(methodDefinition) &&
                 (!isDestructor || methodDefinition.DeclaringType.Interfaces.Any(i => i.InterfaceType.FullName == "Windows.Foundation.IClosable")) &&
                 methodDefinition.Parameters.All(i => IsSupported(i.CustomAttributes) && !(i.ParameterType is ByReferenceType)) &&
                 IsSupported(methodDefinition.MethodReturnType.CustomAttributes));
        }