Skip to content

Commit 03c1524

Browse files
committed
Correct XML doc typos and clarify overload references
Fixed typo ("ture" → "true") in XML documentation comments. Updated remarks to reference the correct InvokeOpenGeneric overload for open generic methods, improving clarity for users.
1 parent fe03129 commit 03c1524

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/BionicCode.Utilities.Reflection/MethodData.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ internal MethodInfo MakeGenericMethodInfo(params Type[] typeArguments)
126126
/// <exception cref="InvalidOperationException">Thrown if the method is declared on a generic type definition or a type containing unassigned generic
127127
/// parameters, or if the method itself is a generic method definition or contains unassigned generic
128128
/// parameters.</exception>
129-
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="ture"/>)
129+
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="true"/>)
130130
/// you must call the <see cref="InvokeOpenGeneric(object?, TypeList, object?[]?)"/> overload and provide the generic type parameter arguments.</remarks>
131131
internal object? Invoke(object? target, params object?[]? args)
132132
=> Invoke(target, args.AsSpan());
@@ -141,7 +141,7 @@ internal MethodInfo MakeGenericMethodInfo(params Type[] typeArguments)
141141
/// <exception cref="InvalidOperationException">Thrown if the method is declared on a generic type definition or a type containing unassigned generic
142142
/// parameters, or if the method itself is a generic method definition or contains unassigned generic
143143
/// parameters.</exception>
144-
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="ture"/>)
144+
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="true"/>)
145145
/// you must call the <see cref="InvokeOpenGeneric(object?, TypeList, ReadOnlySpan{object?})"/> overload and provide the generic type parameter arguments.</remarks>
146146
internal object? Invoke(object? target, ReadOnlySpan<object?> args)
147147
{
@@ -167,7 +167,7 @@ internal MethodInfo MakeGenericMethodInfo(params Type[] typeArguments)
167167
/// <exception cref="InvalidOperationException">Thrown if the method is declared on a generic type definition or a type containing unassigned generic
168168
/// parameters, or if the method itself is a generic method definition or contains unassigned generic
169169
/// parameters.</exception>
170-
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="ture"/>)
170+
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="true"/>)
171171
/// you must call the <see cref="InvokeOpenGeneric(object?, TypeList, object?[]?)"/> overload and provide the generic type parameter arguments.</remarks>
172172
internal void Invoke<TTarget>(TTarget target, params object?[]? args)
173173
=> Invoke<TTarget>(target, args.AsSpan());
@@ -212,7 +212,7 @@ internal void Invoke<TTarget>(TTarget target, ReadOnlySpan<object?> args)
212212
/// <exception cref="InvalidOperationException">Thrown if the method is declared on a generic type definition or a type containing unassigned generic
213213
/// parameters, or if the method itself is a generic method definition or contains unassigned generic
214214
/// parameters.</exception>
215-
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="ture"/>)
215+
/// <remarks>Note: For a generic method that is not closed (<see cref="IsGenericMethodDefinition"/> or <see cref="ContainsGenericParameters"/> returns <see langword="true"/>)
216216
/// you must call the <see cref="InvokeOpenGeneric(object?, TypeList, object?[]?)"/> overload and provide the generic type parameter arguments.</remarks>
217217
internal TResult Invoke<TTarget, TResult>(TTarget target, params object?[]? args)
218218
=> Invoke<TTarget, TResult>(target, args.AsSpan());

0 commit comments

Comments
 (0)