GNOME Bugzilla – Bug 638606
Support for C# nullable types
Last modified: 2018-07-30 10:23:43 UTC
Hi, i would like to request support for the following: support for C# nullable types in the form of such as "int?". Supporting this means that the question mark in "int?" goes into the generated documentation. At the moment (version 1.7.3), the question mark is not shown in the generated documentation. Thanks, Jaap Goddijn P.S. follow the link for documentation on nullable types in C#: http://msdn.microsoft.com/en-us/library/2cf62fcy(v=VS.100).aspx
If nullable type is declared in function arguments, it be displayed correctly. However, it is not displayed otherwise.(version 1.8.13)
I found in the link a small example of nullable types: int? i = 10; double? d1 = 3.14; bool? flag = null; char? letter = 'a'; int?[] arr = new int?[10]; but I didn't, quickly, see an example for functions (even though it works comment of cuspymd). Can you please attach a self contained example (source+config file in a tar or zip) that allows us to reproduce the problem?
I've just pushed a proposed patch to github (pull request 645) An example would still be appreciated (with results / missing information)
I said "function arguments". below is an example at version 1.8.13 - The method 'AnimateBackgroundColor' in (https://github.com/Samsung/TizenFX/blob/master/src/Tizen.NUI/src/public/BaseComponents/View.cs) =========================================================================== public Animation AnimateBackgroundColor(object destinationValue, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialValue = null) =========================================================================== - Part of the xml file generated by doxygen(1.8.13) =========================================================================== <definition>Animation Tizen.NUI.BaseComponents.View.AnimateBackgroundColor</definition> <argsstring>(object destinationValue, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction=null, object initialValue=null)</argsstring> <name>AnimateBackgroundColor</name> <param> <type>object</type> <declname>destinationValue</declname> </param> <param> <type>int</type> <declname>startTime</declname> </param> <param> <type>int</type> <declname>endTime</declname> </param> <param> <type><ref refid="class_tizen_1_1_n_u_i_1_1_alpha_function_1a637382676e1944444f1329777d6ee90e" kindref="member">AlphaFunction.BuiltinFunctions</ref>?</type> <declname>alphaFunction</declname> <defval>null</defval> </param> <param> <type>object</type> <declname>initialValue</declname> <defval>null</defval> </param> =============================================================================
Thanks, looks all OK to me in doxygen.
Patch has been integrated into main development branch on github.
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to https://github.com/doxygen/doxygen/issues All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github. Hence I am closing this GNOME Bugzilla ticket. Please use the corresponding ticket in Github instead. Thanks a lot!