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