Skip to content

Commit f4a634f

Browse files
committed
Minor (slash)doc improvements.
1 parent 76fdf58 commit f4a634f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+676
-693
lines changed

src/Renci.SshNet/AuthenticationMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public abstract class AuthenticationMethod : IAuthenticationMethod
3030
/// Initializes a new instance of the <see cref="AuthenticationMethod"/> class.
3131
/// </summary>
3232
/// <param name="username">The username.</param>
33-
/// <exception cref="ArgumentException"><paramref name="username"/> is whitespace or null.</exception>
33+
/// <exception cref="ArgumentException"><paramref name="username"/> is whitespace or <c>null</c>.</exception>
3434
protected AuthenticationMethod(string username)
3535
{
3636
if (username.IsNullOrWhiteSpace())

src/Renci.SshNet/BaseClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public TimeSpan KeepAliveInterval
139139
/// </summary>
140140
/// <param name="connectionInfo">The connection info.</param>
141141
/// <param name="ownsConnectionInfo">Specified whether this instance owns the connection info.</param>
142-
/// <exception cref="ArgumentNullException"><paramref name="connectionInfo"/> is null.</exception>
142+
/// <exception cref="ArgumentNullException"><paramref name="connectionInfo"/> is <c>null</c>.</exception>
143143
/// <remarks>
144144
/// If <paramref name="ownsConnectionInfo"/> is <c>true</c>, then the
145145
/// connection info will be disposed when this instance is disposed.

src/Renci.SshNet/Common/ASCIIEncoding.cs

Lines changed: 18 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,9 @@ public ASCIIEncoding()
4444
/// <returns>
4545
/// The number of bytes produced by encoding the specified characters.
4646
/// </returns>
47-
/// <exception cref="T:System.ArgumentNullException">
48-
/// <paramref name="chars"/> is null. </exception>
49-
///
50-
/// <exception cref="T:System.ArgumentOutOfRangeException">
51-
/// <paramref name="index"/> or <paramref name="count"/> is less than zero.-or- <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in <paramref name="chars"/>. </exception>
52-
///
53-
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="T:System.Text.EncoderExceptionFallback"/>.</exception>
47+
/// <exception cref="ArgumentNullException"><paramref name="chars"/> is <c>null</c>.</exception>
48+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> or <paramref name="count"/> is less than zero.-or- <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in <paramref name="chars"/>.</exception>
49+
/// <exception cref="EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="EncoderExceptionFallback"/>.</exception>
5450
public override int GetByteCount(char[] chars, int index, int count)
5551
{
5652
return count;
@@ -67,16 +63,10 @@ public override int GetByteCount(char[] chars, int index, int count)
6763
/// <returns>
6864
/// The actual number of bytes written into <paramref name="bytes"/>.
6965
/// </returns>
70-
/// <exception cref="T:System.ArgumentNullException">
71-
/// <paramref name="chars"/> is null.-or- <paramref name="bytes"/> is null. </exception>
72-
///
73-
/// <exception cref="T:System.ArgumentOutOfRangeException">
74-
/// <paramref name="charIndex"/> or <paramref name="charCount"/> or <paramref name="byteIndex"/> is less than zero.-or- <paramref name="charIndex"/> and <paramref name="charCount"/> do not denote a valid range in <paramref name="chars"/>.-or- <paramref name="byteIndex"/> is not a valid index in <paramref name="bytes"/>. </exception>
75-
///
76-
/// <exception cref="T:System.ArgumentException">
77-
/// <paramref name="bytes"/> does not have enough capacity from <paramref name="byteIndex"/> to the end of the array to accommodate the resulting bytes. </exception>
78-
///
79-
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="T:System.Text.EncoderExceptionFallback"/>.</exception>
66+
/// <exception cref="ArgumentNullException"><paramref name="chars"/> is <c>null</c>.-or- <paramref name="bytes"/> is <c>null</c>.</exception>
67+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="charIndex"/> or <paramref name="charCount"/> or <paramref name="byteIndex"/> is less than zero.-or- <paramref name="charIndex"/> and <paramref name="charCount"/> do not denote a valid range in <paramref name="chars"/>.-or- <paramref name="byteIndex"/> is not a valid index in <paramref name="bytes"/>.</exception>
68+
/// <exception cref="ArgumentException"><paramref name="bytes"/> does not have enough capacity from <paramref name="byteIndex"/> to the end of the array to accommodate the resulting bytes.</exception>
69+
/// <exception cref="EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="EncoderExceptionFallback"/>.</exception>
8070
public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
8171
{
8272
for (var i = 0; i < charCount && i < chars.Length; i++)
@@ -100,13 +90,9 @@ public override int GetBytes(char[] chars, int charIndex, int charCount, byte[]
10090
/// <returns>
10191
/// The number of characters produced by decoding the specified sequence of bytes.
10292
/// </returns>
103-
/// <exception cref="T:System.ArgumentNullException">
104-
/// <paramref name="bytes"/> is null. </exception>
105-
///
106-
/// <exception cref="T:System.ArgumentOutOfRangeException">
107-
/// <paramref name="index"/> or <paramref name="count"/> is less than zero.-or- <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in <paramref name="bytes"/>. </exception>
108-
///
109-
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="T:System.Text.DecoderExceptionFallback"/>.</exception>
93+
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is <c>null</c>.</exception>
94+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> or <paramref name="count"/> is less than zero.-or- <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in <paramref name="bytes"/>.</exception>
95+
/// <exception cref="DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="DecoderExceptionFallback"/>.</exception>
11096
public override int GetCharCount(byte[] bytes, int index, int count)
11197
{
11298
return count;
@@ -123,16 +109,10 @@ public override int GetCharCount(byte[] bytes, int index, int count)
123109
/// <returns>
124110
/// The actual number of characters written into <paramref name="chars"/>.
125111
/// </returns>
126-
/// <exception cref="T:System.ArgumentNullException">
127-
/// <paramref name="bytes"/> is null.-or- <paramref name="chars"/> is null. </exception>
128-
///
129-
/// <exception cref="T:System.ArgumentOutOfRangeException">
130-
/// <paramref name="byteIndex"/> or <paramref name="byteCount"/> or <paramref name="charIndex"/> is less than zero.-or- <paramref name="byteIndex"/> and <paramref name="byteCount"/> do not denote a valid range in <paramref name="bytes"/>.-or- <paramref name="charIndex"/> is not a valid index in <paramref name="chars"/>. </exception>
131-
///
132-
/// <exception cref="T:System.ArgumentException">
133-
/// <paramref name="chars"/> does not have enough capacity from <paramref name="charIndex"/> to the end of the array to accommodate the resulting characters. </exception>
134-
///
135-
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="T:System.Text.DecoderExceptionFallback"/>.</exception>
112+
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is <c>null</c>.-or- <paramref name="chars"/> is <c>null</c>.</exception>
113+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteIndex"/> or <paramref name="byteCount"/> or <paramref name="charIndex"/> is less than zero.-or- <paramref name="byteIndex"/> and <paramref name="byteCount"/> do not denote a valid range in <paramref name="bytes"/>.-or- <paramref name="charIndex"/> is not a valid index in <paramref name="chars"/>.</exception>
114+
/// <exception cref="ArgumentException"><paramref name="chars"/> does not have enough capacity from <paramref name="charIndex"/> to the end of the array to accommodate the resulting characters.</exception>
115+
/// <exception cref="DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="DecoderExceptionFallback"/>.</exception>
136116
public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
137117
{
138118
for (var i = 0; i < byteCount; i++)
@@ -161,10 +141,8 @@ public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[]
161141
/// <returns>
162142
/// The maximum number of bytes produced by encoding the specified number of characters.
163143
/// </returns>
164-
/// <exception cref="T:System.ArgumentOutOfRangeException">
165-
/// <paramref name="charCount"/> is less than zero. </exception>
166-
///
167-
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="T:System.Text.EncoderExceptionFallback"/>.</exception>
144+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="charCount"/> is less than zero.</exception>
145+
/// <exception cref="EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="EncoderExceptionFallback"/>.</exception>
168146
public override int GetMaxByteCount(int charCount)
169147
{
170148
if (charCount < 0)
@@ -180,10 +158,8 @@ public override int GetMaxByteCount(int charCount)
180158
/// <returns>
181159
/// The maximum number of characters produced by decoding the specified number of bytes.
182160
/// </returns>
183-
/// <exception cref="T:System.ArgumentOutOfRangeException">
184-
/// <paramref name="byteCount"/> is less than zero. </exception>
185-
///
186-
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="T:System.Text.DecoderExceptionFallback"/>.</exception>
161+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is less than zero.</exception>
162+
/// <exception cref="DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="DecoderExceptionFallback"/>.</exception>
187163
public override int GetMaxCharCount(int byteCount)
188164
{
189165
if (byteCount < 0)

src/Renci.SshNet/Common/PipeStream.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public override void SetLength(long value)
175175
///<exception cref="ArgumentException">The sum of offset and count is larger than the buffer length.</exception>
176176
///<exception cref="ObjectDisposedException">Methods were called after the stream was closed.</exception>
177177
///<exception cref="NotSupportedException">The stream does not support reading.</exception>
178-
///<exception cref="ArgumentNullException">buffer is null.</exception>
178+
///<exception cref="ArgumentNullException"><paramref name="buffer"/> is <c>null</c>.</exception>
179179
///<exception cref="IOException">An I/O error occurs.</exception>
180180
///<exception cref="ArgumentOutOfRangeException">offset or count is negative.</exception>
181181
public override int Read(byte[] buffer, int offset, int count)
@@ -242,7 +242,7 @@ private bool ReadAvailable(int count)
242242
///<exception cref="IOException">An I/O error occurs.</exception>
243243
///<exception cref="NotSupportedException">The stream does not support writing.</exception>
244244
///<exception cref="ObjectDisposedException">Methods were called after the stream was closed.</exception>
245-
///<exception cref="ArgumentNullException">buffer is null.</exception>
245+
///<exception cref="ArgumentNullException"><paramref name="buffer"/> is <c>null</c>.</exception>
246246
///<exception cref="ArgumentException">The sum of offset and count is greater than the buffer length.</exception>
247247
///<exception cref="ArgumentOutOfRangeException">offset or count is negative.</exception>
248248
public override void Write(byte[] buffer, int offset, int count)

src/Renci.SshNet/Common/ProxyException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public ProxyException(string message, Exception innerException) :
4545
/// </summary>
4646
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
4747
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
48-
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
49-
/// <exception cref="SerializationException">The class name is null or <see cref="Exception.HResult"/> is zero (0). </exception>
48+
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
49+
/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
5050
protected ProxyException(SerializationInfo info, StreamingContext context)
5151
: base(info, context)
5252
{

0 commit comments

Comments
 (0)