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
/// Get the help description on the <paramref name="symbol"/>
38
+
/// </summary>
39
+
/// <typeparam name="TSymbol">The type of the symbol</typeparam>
40
+
/// <param name="symbol">The symbol</param>
41
+
/// <returns>The symbol description if any, otherwise <see langword="null"/></returns>
42
+
/// <remarks>
43
+
/// This is intended to be called by CLI authors. Subsystems should instead call <see cref="HelpSubsystem.TryGetDescription(CliSymbol, out string?)"/>,
44
+
/// values from the subsystem's <see cref="IAnnotationProvider"/>.
/// Attempts to get the value for the annotation <paramref name="id"/> associated with the <paramref name="symbol"/>,
90
-
/// first from the optional <paramref name="provider"/>, and falling back to the internal annotation storage used to
91
-
/// store values set via <see cref="SetAnnotation{TValue}(CliSymbol, AnnotationId{TValue}, TValue)"/>.
92
+
/// Attempts to get the value for the annotation <paramref name="annotationId"/> associated with the <paramref name="symbol"/> in the internal annotation
93
+
/// storage used to store values set via <see cref="SetAnnotation{TValue}(CliSymbol, AnnotationId{TValue}, TValue)"/>.
92
94
/// </summary>
93
95
/// <typeparam name="TValue">The type of the annotation value</typeparam>
94
96
/// <param name="symbol">The symbol that is annotated</param>
95
-
/// <param name="id">
97
+
/// <param name="annotationId">
96
98
/// The identifier for the annotation. For example, the annotation identifier for the help description is <see cref="HelpAnnotations.Description">.
97
99
/// </param>
98
100
/// <param name="value">The annotation value, if successful, otherwise <c>default</c></param>
99
-
/// <param name="provider">
100
-
/// An optional annotation provider that may implement custom or lazy construction of annotation values. Annotation returned by an annotation
101
-
/// provider take precedence over those stored in internal annotation storage.
/// This is intended to be called by specialized ID-specific accessors for CLI authors such as <see cref="HelpAnnotationExtensions.GetDescription{TSymbol}(TSymbol)"/>.
104
+
/// Subsystems should not call it, as it does not account for values from the subsystem's <see cref="IAnnotationProvider"/>. They should instead call
105
+
/// <see cref="CliSubsystem.TryGetAnnotation{TValue}(CliSymbol, AnnotationId{TValue}, out TValue?)"/> or an ID-specific accessor on the subsystem such
106
+
/// <see cref="HelpSubsystem.TryGetDescription(CliSymbol, out string?)"/>.
/// Attempt to retrieve the <paramref name="symbol"/>'s value for the annotation <paramref name="id"/>
121
-
/// from the optional <paramref name="provider"/> and the internal annotation storage.
120
+
/// Attempts to get the value for the annotation <paramref name="annotationId"/> associated with the <paramref name="symbol"/> in the internal annotation
121
+
/// storage used to store values set via <see cref="SetAnnotation{TValue}(CliSymbol, AnnotationId{TValue}, TValue)"/>.
122
122
/// </summary>
123
123
/// <typeparam name="TValue">The type of the annotation value</typeparam>
124
124
/// <param name="symbol">The symbol that is annotated</param>
125
-
/// <param name="id">
125
+
/// <param name="annotationId">
126
126
/// The identifier for the annotation. For example, the annotation identifier for the help description is <see cref="HelpAnnotations.Description">.
127
127
/// </param>
128
-
/// <param name="provider">
129
-
/// An optional annotation provider that may implement custom or lazy construction of annotation values. Annotation returned by an annotation
130
-
/// provider take precedence over those stored in internal annotation storage.
131
-
/// </param>
132
128
/// <returns>The annotation value, if successful, otherwise <c>default</c></returns>
/// This is intended to be called by specialized ID-specific accessors for CLI authors such as <see cref="HelpAnnotationExtensions.GetDescription{TSymbol}(TSymbol)"/>.
131
+
/// Subsystems should not call it, as it does not account for values from the subsystem's <see cref="IAnnotationProvider"/>. They should instead call
132
+
/// <see cref="CliSubsystem.TryGetAnnotation{TValue}(CliSymbol, AnnotationId{TValue}, out TValue?)"/> or an ID-specific accessor on the subsystem such
133
+
/// <see cref="HelpSubsystem.TryGetDescription(CliSymbol, out string?)"/>.
0 commit comments