Skip to content

Commit 0a7f84c

Browse files
Automatic port of Microsoft.Extensions.ObjectPool docs (dotnet#4932)
* Automatic port of Microsoft.Extensions.ObjectPool docs * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Genevieve Warren <[email protected]> Co-authored-by: carlossanlop <[email protected]> Co-authored-by: Genevieve Warren <[email protected]>
1 parent 8310487 commit 0a7f84c

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

xml/Microsoft.Extensions.ObjectPool/DefaultPooledObjectPolicy`1.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
</ReturnValue>
101101
<Parameters />
102102
<Docs>
103-
<summary>To be added.</summary>
104-
<returns>To be added.</returns>
103+
<summary>Creates a <typeparamref name="T" />.</summary>
104+
<returns>The <typeparamref name="T" /> that was created.</returns>
105105
<remarks>To be added.</remarks>
106106
</Docs>
107107
</Member>
@@ -138,9 +138,10 @@
138138
<Parameter Name="obj" Type="T" />
139139
</Parameters>
140140
<Docs>
141-
<param name="obj">To be added.</param>
142-
<summary>To be added.</summary>
143-
<returns>To be added.</returns>
141+
<param name="obj">The object to return to the pool.</param>
142+
<summary>Runs some processing when an object is returned to the pool. Can be used to reset the state of an object and indicate if the object should be returned to the pool.</summary>
143+
<returns>
144+
<see langword="true" /> if the object should be returned to the pool. <see langword="false" /> if it's not possible or desirable for the pool to keep the object.</returns>
144145
<remarks>To be added.</remarks>
145146
</Docs>
146147
</Member>

xml/Microsoft.Extensions.ObjectPool/PooledObjectPolicy`1.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
</ReturnValue>
7373
<Parameters />
7474
<Docs>
75-
<summary>To be added.</summary>
76-
<returns>To be added.</returns>
75+
<summary>Creates a <typeparamref name="T" />.</summary>
76+
<returns>The <typeparamref name="T" /> that was created.</returns>
7777
<remarks>To be added.</remarks>
7878
</Docs>
7979
</Member>
@@ -102,9 +102,10 @@
102102
<Parameter Name="obj" Type="T" />
103103
</Parameters>
104104
<Docs>
105-
<param name="obj">To be added.</param>
106-
<summary>To be added.</summary>
107-
<returns>To be added.</returns>
105+
<param name="obj">The object to return to the pool.</param>
106+
<summary>Runs some processing when an object is returned to the pool. Can be used to reset the state of an object and indicate if the object should be returned to the pool.</summary>
107+
<returns>
108+
<see langword="true" /> if the object should be returned to the pool. <see langword="false" /> if it's not possible or desirable for the pool to keep the object.</returns>
108109
<remarks>To be added.</remarks>
109110
</Docs>
110111
</Member>

xml/Microsoft.Extensions.ObjectPool/StringBuilderPooledObjectPolicy.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
</ReturnValue>
9292
<Parameters />
9393
<Docs>
94-
<summary>To be added.</summary>
95-
<returns>To be added.</returns>
94+
<summary>Creates a <typeparamref name="T" />.</summary>
95+
<returns>The <typeparamref name="T" /> that was created.</returns>
9696
<remarks>To be added.</remarks>
9797
</Docs>
9898
</Member>
@@ -183,9 +183,10 @@
183183
<Parameter Name="obj" Type="System.Text.StringBuilder" />
184184
</Parameters>
185185
<Docs>
186-
<param name="obj">To be added.</param>
187-
<summary>To be added.</summary>
188-
<returns>To be added.</returns>
186+
<param name="obj">The object to return to the pool.</param>
187+
<summary>Runs some processing when an object is returned to the pool. Can be used to reset the state of an object and indicate if the object should be returned to the pool.</summary>
188+
<returns>
189+
<see langword="true" /> if the object should be returned to the pool. <see langword="false" /> if it's not possible or desirable for the pool to keep the object.</returns>
189190
<remarks>To be added.</remarks>
190191
</Docs>
191192
</Member>

0 commit comments

Comments
 (0)