Skip to content

Commit 3a56122

Browse files
committed
Updated documentation
1 parent 5597d95 commit 3a56122

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PInvoke/Shared/FunctionHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static class FunctionHelper
2727

2828
/// <summary>Gets a size and returns an error.</summary>
2929
/// <typeparam name="TSize">The type of the size result. This is usually <see cref="int"/> or <see cref="uint"/>.</typeparam>
30-
/// <param name="sz">On input, the size of the <paramref name="sb"/> capacity. On output, the number of characters written.</param>
30+
/// <param name="sz">On input, the size of the capacity. On output, the number of characters written.</param>
3131
/// <returns>Resulting error or <see cref="Win32Error.ERROR_SUCCESS"/> on success.</returns>
3232
public delegate Win32Error SizeFunc<TSize>(ref TSize sz) where TSize : struct, IConvertible;
3333

@@ -41,7 +41,7 @@ public static class FunctionHelper
4141
/// </summary>
4242
/// <typeparam name="TSize">The type of the size result. This is usually <see cref="int"/> or <see cref="uint"/>.</typeparam>
4343
/// <typeparam name="TRet">The error provider return type.</typeparam>
44-
/// <param name="sz">On input, the size of the <paramref name="sb"/> capacity. On ouput, the number of characters written.</param>
44+
/// <param name="sz">On input, the size of the capacity. On output, the number of characters written.</param>
4545
/// <param name="err">The error.</param>
4646
/// <returns><c>true</c> if buffer size is good; otherwise <c>false</c>.</returns>
4747
public static bool ChkGoodBuf<TSize, TRet>(TSize sz, TRet err) where TSize : struct where TRet : IErrorProvider, IConvertible => !sz.Equals(default(TSize)) && (err.ToHRESULT() == (HRESULT)(Win32Error)Win32Error.ERROR_MORE_DATA || err.ToHRESULT() == (HRESULT)(Win32Error)Win32Error.ERROR_INSUFFICIENT_BUFFER);

PInvoke/Shared/InteropServices/SafeNativeArray.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ protected TElem[] Elements
4949
}
5050
}
5151

52-
/// <summary>Gets or sets the <see cref="TElem"/> at the specified index.</summary>
53-
/// <value>The <see cref="TElem"/>.</value>
52+
/// <summary>Gets or sets the <typeparamref name="TElem"/> value at the specified index.</summary>
53+
/// <value>The <typeparamref name="TElem"/> value.</value>
5454
/// <param name="index">The index.</param>
5555
/// <returns></returns>
5656
/// <exception cref="ArgumentOutOfRangeException">index or index</exception>

0 commit comments

Comments
 (0)