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
Take a method symbol with a "ref" or "out" parameter and use ToDisplayString(methodDisplayFormat) and look at the resulting string
This will display everything correctly, however, if you remove 'SymbolDisplayParameterOptions.IncludeType' from parameterOptions, then the modifiers ("out", "ref", etc.) will no longer display.
Expected Results:
For the modifiers to display, regardless if type is displayed or not.
The text was updated successfully, but these errors were encountered:
Steps To Reproduce:
var methodDisplayFormat = new SymbolDisplayFormat( typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces, genericsOptions: SymbolDisplayGenericsOptions.None, memberOptions: SymbolDisplayMemberOptions.IncludeParameters, parameterOptions: SymbolDisplayParameterOptions.IncludeModifiers | SymbolDisplayParameterOptions.IncludeType | SymbolDisplayParameterOptions.IncludeName, propertyStyle: SymbolDisplayPropertyStyle.ShowReadWriteDescriptor, localOptions: SymbolDisplayLocalOptions.IncludeType, kindOptions: SymbolDisplayKindOptions.IncludeMemberKeyword, delegateStyle: SymbolDisplayDelegateStyle.NameAndSignature, extensionMethodStyle: SymbolDisplayExtensionMethodStyle.StaticMethod, miscellaneousOptions: SymbolDisplayMiscellaneousOptions.UseSpecialTypes);
This will display everything correctly, however, if you remove 'SymbolDisplayParameterOptions.IncludeType' from parameterOptions, then the modifiers ("out", "ref", etc.) will no longer display.
Expected Results:
For the modifiers to display, regardless if type is displayed or not.
The text was updated successfully, but these errors were encountered: