You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated classes and interfaces do not have the documentation of the specified FluentMembers and FluentMethods, would it be possible to copy that into the generated code, such that is can be displayed to the users through hints in their IDE?
The text was updated successfully, but these errors were encountered:
Hi @vzam, thank you for this suggestion! I believe it's technically possible. Conceptually, there’s the challenge of handling the documentation for FluentMembers, as their documentation strings could be written from a different perspective. For example:
[FluentApi]publicclassStudent{/// <summary>/// Gets the first name./// </summary>[FluentMember(0,"Named",0)]publicstringFirstName{get;privateset;}/// <summary>/// Gest the last name./// </summary>[FluentMember(0,"Named",1)]publicstringLastName{get;privateset;}
...}
For the builder, the documentation could look like this:
/// <summary>/// Sets the first name and the last name./// </summary>/// <param name="firstName">The first name.</param>/// <param name="lastName">The last name.</param>/// <returns></returns>publicstaticIOfAgeBornOnNamed(stringfirstName,stringlastName){
...}.
If you or anyone else can think of other edge cases where the documentation can't simply be copied, please add them to the issue.
The generated classes and interfaces do not have the documentation of the specified
FluentMember
s andFluentMethod
s, would it be possible to copy that into the generated code, such that is can be displayed to the users through hints in their IDE?The text was updated successfully, but these errors were encountered: