예제 #1
0
 protected override string GetMethodName(MethodReference method)
 {
     if (DocUtils.IsDestructor(method.Resolve()))
     {
         return("Close");
     }
     return(CamelCase(method.Name));
 }
예제 #2
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));
        }