Skip to content

Remove inline C++ snippets #11344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
341 changes: 165 additions & 176 deletions xml/System.Collections.Generic/Dictionary`2+KeyCollection.xml

Large diffs are not rendered by default.

347 changes: 168 additions & 179 deletions xml/System.Collections.Generic/Dictionary`2+ValueCollection.xml

Large diffs are not rendered by default.

15 changes: 2 additions & 13 deletions xml/System.Collections.Generic/Dictionary`2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2489,7 +2489,7 @@

Enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.

The <xref:System.Collections.ICollection.SyncRoot%2A> property returns an object that can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock the object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property for C#, C++, and Visual Basic.
The <xref:System.Collections.ICollection.SyncRoot%2A> property returns an object that can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock the object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property.

```csharp
ICollection ic = ...;
Expand All @@ -2505,18 +2505,7 @@ SyncLock ic.SyncRoot
End SyncLock
```

```cpp
ICollection^ ic = ...;
try {
Monitor::Enter(ic->SyncRoot);
// Access the collection.
}
finally {
Monitor::Exit(ic->SyncRoot);
}
```

Getting the value of this property is an O(1) operation.
Getting the value of this property is an O(1) operation.

]]></format>
</remarks>
Expand Down
15 changes: 2 additions & 13 deletions xml/System.Collections.Generic/LinkedList`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@

Enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.

<xref:System.Collections.ICollection.SyncRoot%2A> returns an object that can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock this object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property for C#, C++, and Visual Basic.
<xref:System.Collections.ICollection.SyncRoot%2A> returns an object that can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock this object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property.

```csharp
ICollection ic = ...;
Expand All @@ -2347,18 +2347,7 @@ SyncLock ic.SyncRoot
End SyncLock
```

```cpp
ICollection^ ic = ...;
try {
Monitor::Enter(ic->SyncRoot);
// Access the collection.
}
finally {
Monitor::Exit(ic->SyncRoot);
}
```

Retrieving the value of this property is an O(1) operation.
Retrieving the value of this property is an O(1) operation.

]]></format>
</remarks>
Expand Down
17 changes: 2 additions & 15 deletions xml/System.Collections.Generic/List`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4539,7 +4539,7 @@ Public Function StartsWith(e As Employee) As Boolean

Enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.

<xref:System.Collections.ICollection.SyncRoot%2A> returns an object that can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock this object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property for C#, C++, and Visual Basic.
<xref:System.Collections.ICollection.SyncRoot%2A> returns an object that can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock this object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property.

```csharp
ICollection ic = ...;
Expand All @@ -4556,20 +4556,7 @@ SyncLock ic.SyncRoot
End SyncLock
```

```cpp
ICollection^ ic = ...;
try
{
Monitor::Enter(ic->SyncRoot);
// Access the collection.
}
finally
{
Monitor::Exit(ic->SyncRoot);
}
```

Retrieving the value of this property is an O(1) operation.
Retrieving the value of this property is an O(1) operation.

]]></format>
</remarks>
Expand Down
15 changes: 2 additions & 13 deletions xml/System.Collections.Generic/Queue`1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@

Enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.

<xref:System.Collections.ICollection.SyncRoot%2A> returns an object, which can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock this object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property for C#, C++, and Visual Basic.
<xref:System.Collections.ICollection.SyncRoot%2A> returns an object, which can be used to synchronize access to the <xref:System.Collections.ICollection>. Synchronization is effective only if all threads lock this object before accessing the collection. The following code shows the use of the <xref:System.Collections.ICollection.SyncRoot%2A> property.

```csharp
ICollection ic = ...;
Expand All @@ -1268,18 +1268,7 @@ SyncLock ic.SyncRoot
End SyncLock
```

```cpp
ICollection^ ic = ...;
try {
Monitor::Enter(ic->SyncRoot);
// Access the collection.
}
finally {
Monitor::Exit(ic->SyncRoot);
}
```

Retrieving the value of this property is an O(1) operation.
Retrieving the value of this property is an O(1) operation.

]]></format>
</remarks>
Expand Down
Loading