You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/GC.xml
+20-13Lines changed: 20 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1083,22 +1083,24 @@ This method is most useful in monitoring scenarios for measuring the difference
1083
1083
<Docs>
1084
1084
<paramname="obj">The object that generation information is retrieved for.</param>
1085
1085
<summary>Returns the current generation number of the specified object.</summary>
1086
-
<returns>The current generation number of <paramrefname="obj" />.</returns>
1086
+
<returns>The current generation number of <paramrefname="obj" />, or <seecref="F:System.Int32.MaxValue">Int32.MaxValue</see>.</returns>
1087
1087
<remarks>
1088
1088
<formattype="text/markdown"><.
1094
1095
1095
1096
## Examples
1096
-
The following example demonstrates how to use the <xref:System.GC.GetGeneration%2A> method to determine the age of an object. The example then performs garbage collections to clean up memory and compare the pre and post collection memory totals in the console.
1097
1097
1098
-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.gc.collect int example/CPP/class1.cpp" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.gc.collect int example/VB/class1.vb" id="Snippet1":::
1098
+
The following example demonstrates how to use the <xref:System.GC.GetGeneration%2A> method to determine the age of an object. The example then performs garbage collections to clean up memory and compare the pre and post collection memory totals in the console.
1099
+
1100
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.gc.collect int example/CPP/class1.cpp" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.gc.collect int example/VB/class1.vb" id="Snippet1":::
1102
1104
1103
1105
]]></format>
1104
1106
</remarks>
@@ -1150,17 +1152,22 @@ This method is most useful in monitoring scenarios for measuring the difference
1150
1152
<Docs>
1151
1153
<paramname="wo">A <seecref="T:System.WeakReference" /> that refers to the target object whose generation number is to be determined.</param>
1152
1154
<summary>Returns the current generation number of the target of a specified weak reference.</summary>
1153
-
<returns>The current generation number of the target of <paramrefname="wo" />.</returns>
1155
+
<returns>The current generation number of the target of <paramrefname="wo" />, or <seecref="P:System.Int32.MaxValue" />.</returns>
1154
1156
<remarks>
1155
1157
<formattype="text/markdown"><.
1162
+
1157
1163
## Examples
1158
-
The following example demonstrates the use of the <xref:System.GC.GetGeneration%2A> method to determine the age of a weak reference object.
0 commit comments