Skip to content

Commit ccb0cf7

Browse files
nschonnimairaw
authored andcommitted
typos: xml/System.[E-L]* (#2196)
* typo: commited -> committed Ignored System.EnterpriseServices.TransactionStatus.Commited which looks like a product bug * typo: syste -> system * typo: Ifthe -> If the * typo: provied -> provided * typo: Algoritm -> Algorithm * typo: deserialzied -> deserialized * typo: propertyfor -> property for * typo: asymetric -> asymmetric * typo: issurance -> issuance * typo: Mehtod -> Method * typo: Localname -> Local name * typo: enpoint -> endpoint * typo: encryped -> encrypted * typo: eceived -> Received * typo: qualifed -> qualified * typo: methhod -> method * typo: hte -> the * typo: becasue -> because * typo: anmd -> and * typo: contatenates -> concatenates * typo: concatentated -> concatenated * typo: concatentation -> concatenation * typo: operaton -> operation * typo: diposes -> disposes * typo: miliseconds -> milliseconds * typo: stringto -> string to * typo: Inex -> Index * typo: polymorhphic -> polymorphic * typo: elments -> elements * typo: resturned -> returned * typo: clearning -> clearing * typo: substracts -> subtracts * typo: vaule -> value * typo: bodh -> body * typo: swtich -> switch
1 parent 44a6ee7 commit ccb0cf7

File tree

32 files changed

+55
-55
lines changed

32 files changed

+55
-55
lines changed

xml/System.EnterpriseServices.CompensatingResourceManager/TransactionState.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
</ReturnValue>
8888
<MemberValue>1</MemberValue>
8989
<Docs>
90-
<summary>The transaction is commited.</summary>
90+
<summary>The transaction is committed.</summary>
9191
</Docs>
9292
</Member>
9393
<Member MemberName="Indoubt">

xml/System.EnterpriseServices.Internal/IComSoapPublisher.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@
626626
<paramref name="AssemblyPath" /> is not found, or a file name extension is not specified.</exception>
627627
<exception cref="T:System.BadImageFormatException">
628628
<paramref name="AssemblyPath" /> is not a valid assembly.</exception>
629-
<exception cref="T:System.IO.FileLoadException">An assembly or module was loaded twice with two different evidences, or the assembly name exceeds the syste-defined maximum length.</exception>
629+
<exception cref="T:System.IO.FileLoadException">An assembly or module was loaded twice with two different evidences, or the assembly name exceeds the system-defined maximum length.</exception>
630630
<exception cref="T:System.InvalidOperationException">A method marked with <see cref="T:System.Runtime.InteropServices.ComUnregisterFunctionAttribute" /> is not <see langword="static" />.
631631

632632
-or-

xml/System.Globalization/EastAsianLunisolarCalendar.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
<format type="text/markdown"><![CDATA[
443443
444444
## Remarks
445-
Ifthe `month` parameter is the second month, the <xref:System.Globalization.EastAsianLunisolarCalendar.GetDaysInMonth%2A> method returns 28 or 29, depending on whether the `year` parameter is a leap year.
445+
If the `month` parameter is the second month, the <xref:System.Globalization.EastAsianLunisolarCalendar.GetDaysInMonth%2A> method returns 28 or 29, depending on whether the `year` parameter is a leap year.
446446
447447
]]></format>
448448
</remarks>

xml/System.IO.Log/FileRecordSequence.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
8181
8282
## Examples
83-
The following example creates a record sequence, appends record to it, reads the records, and finally diposes the sequence.
83+
The following example creates a record sequence, appends record to it, reads the records, and finally disposes the sequence.
8484
8585
[!code-csharp[IRecordSequence#1](~/samples/snippets/csharp/VS_Snippets_CFX/irecordsequence/cs/readrecord.cs#1)]
8686
[!code-vb[IRecordSequence#1](~/samples/snippets/visualbasic/VS_Snippets_CFX/irecordsequence/vb/readrecord.vb#1)]

xml/System.IO.Ports/SerialData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<format type="text/markdown"><![CDATA[
2525
2626
## Remarks
27-
This enumeration is used with the <xref:System.IO.Ports.SerialPort.DataReceived> event. You examine the type of character that was received by retrieving the value of the eceivedEventArgs.EventType property of the eceivedEventArgs class. The eceivedEventArgs.EventType property contains one of the values from the <xref:System.IO.Ports.SerialDataReceivedEventArgs.EventType%2A> enumeration.
27+
This enumeration is used with the <xref:System.IO.Ports.SerialPort.DataReceived> event. You examine the type of character that was received by retrieving the value of the ReceivedEventArgs.EventType property of the ReceivedEventArgs class. The ReceivedEventArgs.EventType property contains one of the values from the <xref:System.IO.Ports.SerialDataReceivedEventArgs.EventType%2A> enumeration.
2828
2929
]]></format>
3030
</remarks>

xml/System.IO.Ports/SerialError.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<format type="text/markdown"><![CDATA[
2525
2626
## Remarks
27-
This enumeration can be useful when handling the <xref:System.IO.Ports.SerialPort.ErrorReceived> event to detect and respond to errors when communicating data through a <xref:System.IO.Ports.SerialPort>. You examine the type of error by retrieving the eceivedEventArgs.EventType property of the eceivedEventArgs class. The eceivedEventArgs.EventType property contains one of the values from the <xref:System.IO.Ports.SerialErrorReceivedEventArgs.EventType%2A> enumeration.
27+
This enumeration can be useful when handling the <xref:System.IO.Ports.SerialPort.ErrorReceived> event to detect and respond to errors when communicating data through a <xref:System.IO.Ports.SerialPort>. You examine the type of error by retrieving the ReceivedEventArgs.EventType property of the ReceivedEventArgs class. The ReceivedEventArgs.EventType property contains one of the values from the <xref:System.IO.Ports.SerialErrorReceivedEventArgs.EventType%2A> enumeration.
2828
2929
]]></format>
3030
</remarks>

xml/System.IO/File.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
<AssemblyVersion>4.1.0.0</AssemblyVersion>
341341
</AssemblyInfo>
342342
<Docs>
343-
<summary>Appends the specified stringto the file, creating the file if it does not already exist.</summary>
343+
<summary>Appends the specified string to the file, creating the file if it does not already exist.</summary>
344344
</Docs>
345345
</MemberGroup>
346346
<Member MemberName="AppendAllText">

xml/System.IO/FileSystemEventArgs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
<ReturnType>System.String</ReturnType>
191191
</ReturnValue>
192192
<Docs>
193-
<summary>Gets the fully qualifed path of the affected file or directory.</summary>
193+
<summary>Gets the fully qualified path of the affected file or directory.</summary>
194194
<value>The path of the affected file or directory.</value>
195195
<remarks>
196196
<format type="text/markdown"><![CDATA[

xml/System.IO/Path.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,13 +2054,13 @@ If `path1` ends in a path separator character that is not appropriate for the ta
20542054
20552055
- Use a forward slash ("/") as the directory separator character. This character is returned by the <xref:System.IO.Path.DirectorySeparatorChar?displayProperty=nameWithType> property on Unix-based systems and by the <xref:System.IO.Path.AltDirectorySeparatorChar?displayProperty=nameWithType> property on Windows systems.
20562056
2057-
Unlike the <xref:System.IO.Path.Combine%2A> method, the <xref:System.IO.Path.Join%2A> methhod does not attempt to root the returned path. (That is, if `path2` is an absolute path, the `Join` method does not discard `path1` and return `path2` as the <xref:System.IO.Path.Combine%2A> method does.) The following example illustrates the difference in the paths returned by the two methods. If the source of `path2` is user input, the <xref:System.IO.Path.Combine%2A> method makes it possible for a user to access a file system resource (such as *C:/Users/User1/Documents/Financial/* in the case of hte example) that the application did not intend to make accessible.
2057+
Unlike the <xref:System.IO.Path.Combine%2A> method, the <xref:System.IO.Path.Join%2A> method does not attempt to root the returned path. (That is, if `path2` is an absolute path, the `Join` method does not discard `path1` and return `path2` as the <xref:System.IO.Path.Combine%2A> method does.) The following example illustrates the difference in the paths returned by the two methods. If the source of `path2` is user input, the <xref:System.IO.Path.Combine%2A> method makes it possible for a user to access a file system resource (such as *C:/Users/User1/Documents/Financial/* in the case of the example) that the application did not intend to make accessible.
20582058
20592059
Not all invalid characters for directory and file names are interpreted as unacceptable by the `Join` method, because you can use these characters for search wildcard characters. For example, while `Path.Join("c:\\", "*.txt")` might be invalid when creating a file, it is valid as a search string. The `Join` method therefore successfully interprets it.
20602060
20612061
## Example
20622062
2063-
The following example illustrates the difference in the paths returned by the <xref:System.IO.Path.Join(System.ReadOnlySpan%7BSystem.Char%7D,System.ReadOnlySpan%7BSystem.Char%7D)?displayProperty=nameWithType> and <xref:System.IO.Path.Combine(System.String,System.String)?displayProperty=nameWithType> methods. When the first string is an fully qualified path that includes a drive and root directory and the second is a relative path from the first path, the two methods produce identical results. In the second and third calls to the `ShowPathInformation` method, the strings returned by the two methods diverge. In the second method call, the first string argument is a drive, while the second is a rooted directory. The `Join` method concatenates the two strings and preserves duplicate path separators. The `Combine` method abandons the drive and returns a rooted directory on the current drive. If the application's current drive is C:\ and the string is used to access a file or files in the directory, it would access C: instead of D:. Finally, becasue both arguments in the third call to `ShowPathInformation` are rooted, the `Join` method simply appends them to create a nonsensical file path, while the `Combine` method discards the first string anmd returns the second. Using this string for file access could give the application unintended access to sensitive files.
2063+
The following example illustrates the difference in the paths returned by the <xref:System.IO.Path.Join(System.ReadOnlySpan%7BSystem.Char%7D,System.ReadOnlySpan%7BSystem.Char%7D)?displayProperty=nameWithType> and <xref:System.IO.Path.Combine(System.String,System.String)?displayProperty=nameWithType> methods. When the first string is an fully qualified path that includes a drive and root directory and the second is a relative path from the first path, the two methods produce identical results. In the second and third calls to the `ShowPathInformation` method, the strings returned by the two methods diverge. In the second method call, the first string argument is a drive, while the second is a rooted directory. The `Join` method concatenates the two strings and preserves duplicate path separators. The `Combine` method abandons the drive and returns a rooted directory on the current drive. If the application's current drive is C:\ and the string is used to access a file or files in the directory, it would access C: instead of D:. Finally, because both arguments in the third call to `ShowPathInformation` are rooted, the `Join` method simply appends them to create a nonsensical file path, while the `Combine` method discards the first string and returns the second. Using this string for file access could give the application unintended access to sensitive files.
20642064
20652065
[!code-csharp[Path.Join(String,String)](~/samples/snippets/csharp/api/system.io/path/combine2/program.cs)]
20662066
[!code-csharp[Path.Join(String,String)](~/samples/snippets/visualbasic/api/system.io/path/combine2/program.vb)]
@@ -2141,21 +2141,21 @@ The following example illustrates the difference in the paths returned by the <x
21412141
21422142
## Remarks
21432143
2144-
This method simply concatenates `path`, `path2`, and `path3` and adds a directory separator character between any of the path components if one is not already present. If the <xref:System.ReadOnlySpan%601.Length> of any of `path1`, `path2`, or `path3` argument is zero, the method contatenates the remaining arguments. If the <xref:System.ReadOnlySpan%601.Length?displayProperty=nameWithType> of all components is zero, the method returns <xref:System.String.Empty?displayProperty=nameWithType>.
2144+
This method simply concatenates `path`, `path2`, and `path3` and adds a directory separator character between any of the path components if one is not already present. If the <xref:System.ReadOnlySpan%601.Length> of any of `path1`, `path2`, or `path3` argument is zero, the method concatenates the remaining arguments. If the <xref:System.ReadOnlySpan%601.Length?displayProperty=nameWithType> of all components is zero, the method returns <xref:System.String.Empty?displayProperty=nameWithType>.
21452145
21462146
If `path1` or `path2` ends in a path separator character that is not appropriate for the target platform, the `Join` method preserves the original path separator character and appends the supported one. This issue arises in hard-coded paths that use the Windows backslash ("\") character, which is not recognized as a path separator on Unix-based systems. To work around this issue, you can:
21472147
21482148
- Retrieve the value of the <xref:System.IO.Path.DirectorySeparatorChar?displayProperty=nameWithType> property rather than hard-coding a directory separator character.
21492149
21502150
- Use a forward slash ("/") as the directory separator character. This character is returned by the <xref:System.IO.Path.DirectorySeparatorChar?displayProperty=nameWithType> property on Unix-based systems and by the <xref:System.IO.Path.AltDirectorySeparatorChar?displayProperty=nameWithType> property on Windows systems.
21512151
2152-
Unlike the <xref:System.IO.Path.Combine%2A> method, the <xref:System.IO.Path.Join%2A> methhod does not attempt to root the returned path. (That is, if `path2` or `path2` is an absolute path, the `Join` method does not discard the previous paths as the <xref:System.IO.Path.Combine%2A> method does.
2152+
Unlike the <xref:System.IO.Path.Combine%2A> method, the <xref:System.IO.Path.Join%2A> method does not attempt to root the returned path. (That is, if `path2` or `path2` is an absolute path, the `Join` method does not discard the previous paths as the <xref:System.IO.Path.Combine%2A> method does.
21532153
21542154
Not all invalid characters for directory and file names are interpreted as unacceptable by the `Join` method, because you can use these characters for search wildcard characters. For example, while `Path.Join("c:\\", "temp", "*.txt")` might be invalid when creating a file, it is valid as a search string. The `Join` method therefore successfully interprets it.
21552155
21562156
## Example
21572157
2158-
The following example illustrates the difference in the paths returned by the <xref:System.IO.Path.Join(System.ReadOnlySpan%7BSystem.Char%7D,System.ReadOnlySpan%7BSystem.Char%7D,System.ReadOnlySpan%7BSystem.Char%7D)?displayProperty=nameWithType> and <xref:System.IO.Path.Combine(System.String,System.String,System.String)?displayProperty=nameWithType> methods. When the first string is an fully qualified path that includes a drive and root directory and the second is a relative path from the first path, the two methods produce identical results. In the second and third calls to the `ShowPathInformation` method, the strings returned by the two methods diverge. In the second method call, the first string argument is a drive, while the second is a rooted directory. The `Join` method concatenates the two strings and preserves duplicate path separators. A call to the <xref:System.IO.Path.GetFullPath%2A> method would eliminate the duplication. The `Combine` method abandons the drive and returns a rooted directory on the current drive. If the application's current drive is C:\ and the string is used to access a file or files in the directory, it would access C: instead of D:. Finally, becasue the final argument in the third call to `ShowPathInformation` are rooted, the `Join` method simply appends it to the first two arguments to create a nonsensical file path, while the `Combine` method discards the first two strings anmd returns the third. Using this string for file access could give the application unintended access to sensitive files.
2158+
The following example illustrates the difference in the paths returned by the <xref:System.IO.Path.Join(System.ReadOnlySpan%7BSystem.Char%7D,System.ReadOnlySpan%7BSystem.Char%7D,System.ReadOnlySpan%7BSystem.Char%7D)?displayProperty=nameWithType> and <xref:System.IO.Path.Combine(System.String,System.String,System.String)?displayProperty=nameWithType> methods. When the first string is an fully qualified path that includes a drive and root directory and the second is a relative path from the first path, the two methods produce identical results. In the second and third calls to the `ShowPathInformation` method, the strings returned by the two methods diverge. In the second method call, the first string argument is a drive, while the second is a rooted directory. The `Join` method concatenates the two strings and preserves duplicate path separators. A call to the <xref:System.IO.Path.GetFullPath%2A> method would eliminate the duplication. The `Combine` method abandons the drive and returns a rooted directory on the current drive. If the application's current drive is C:\ and the string is used to access a file or files in the directory, it would access C: instead of D:. Finally, because the final argument in the third call to `ShowPathInformation` are rooted, the `Join` method simply appends it to the first two arguments to create a nonsensical file path, while the `Combine` method discards the first two strings and returns the third. Using this string for file access could give the application unintended access to sensitive files.
21592159
21602160
[!code-csharp[Path.Join(String,String,String)](~/samples/snippets/csharp/api/system.io/path/combine3/program.cs)]
21612161
[!code-csharp[Path.Join(String,String,String)](~/samples/snippets/visualbasic/api/system.io/path/combine3/program.vb)]
@@ -2261,7 +2261,7 @@ The following example illustrates the difference in the paths returned by the <x
22612261
22622262
## Remarks
22632263
2264-
The destination character span must be large enough to hold the concatentated path. You can then retrieve the concatenated path by calling the <xref:System.Span%601.Slice%2A?displayProperty=nameWithType> method, as the following example illustrates.
2264+
The destination character span must be large enough to hold the concatenated path. You can then retrieve the concatenated path by calling the <xref:System.Span%601.Slice%2A?displayProperty=nameWithType> method, as the following example illustrates.
22652265
22662266
[!code-csharp[IsPathRooted](~/samples/snippets/csharp/api/system.IO/Path/TryJoin/program.cs)]
22672267
@@ -2303,13 +2303,13 @@ The destination character span must be large enough to hold the concatentated pa
23032303
<param name="charsWritten">When the method returns, a value that indicates the number of characters written to the <paramref name="destination" />.</param>
23042304
<summary>Attempts to concatenate two path components to a single preallocated character span, and returns a value that indicates whether the operation succeeded.</summary>
23052305
<returns>
2306-
<see langword="true" /> if the concatentation operaton is successful; otherwise, <see langword="false" />.</returns>
2306+
<see langword="true" /> if the concatenation operation is successful; otherwise, <see langword="false" />.</returns>
23072307
<remarks>
23082308
<format type="text/markdown"><![CDATA[
23092309
23102310
## Remarks
23112311
2312-
`destination` must be large enough to hold the concatentated path. You can then retrieve the concatenated path by calling the <xref:System.Span%601.Slice%2A?displayProperty=nameWithType> method, as the example illustrates.
2312+
`destination` must be large enough to hold the concatenated path. You can then retrieve the concatenated path by calling the <xref:System.Span%601.Slice%2A?displayProperty=nameWithType> method, as the example illustrates.
23132313
23142314
]]></format>
23152315
</remarks>
@@ -2352,13 +2352,13 @@ The destination character span must be large enough to hold the concatentated pa
23522352
<param name="charsWritten">When the method returns, a value that indicates the number of characters written to the <paramref name="destination" />.</param>
23532353
<summary>Attempts to concatenate two path components to a single preallocated character span, and returns a value that indicates whether the operation succeeded.</summary>
23542354
<returns>
2355-
<see langword="true" /> if the concatentation operaton is successful; otherwise, <see langword="false" />.</returns>
2355+
<see langword="true" /> if the concatenation operation is successful; otherwise, <see langword="false" />.</returns>
23562356
<remarks>
23572357
<format type="text/markdown"><![CDATA[
23582358
23592359
## Remarks
23602360
2361-
`destination` must be large enough to hold the concatentated path. You can then retrieve the concatenated path by calling the <xref:System.Span%601.Slice%2A?displayProperty=nameWithType> method, as the example illustrates.
2361+
`destination` must be large enough to hold the concatenated path. You can then retrieve the concatenated path by calling the <xref:System.Span%601.Slice%2A?displayProperty=nameWithType> method, as the example illustrates.
23622362
23632363
]]></format>
23642364
</remarks>

0 commit comments

Comments
 (0)