Skip to content

Commit 3a15cd8

Browse files
svickRon Petrusha
authored andcommitted
Clarify RuntimeHelpers.RunClassConstructor (dotnet#1596)
* Clarify RuntimeHelpers.RunClassConstructor * Update RuntimeHelpers.xml
1 parent ce8058e commit 3a15cd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System.Runtime.CompilerServices/RuntimeHelpers.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,8 @@
970970
<Parameter Name="type" Type="System.RuntimeTypeHandle" />
971971
</Parameters>
972972
<Docs>
973-
<param name="type">A type handle that specifies the class constructor method to run.</param>
974-
<summary>Runs a specified class constructor method.</summary>
973+
<param name="type">A type handle that specifies the type for which a type initializer should be run.</param>
974+
<summary>Ensures that the type initializer (also known as a static constructor) for the specified type has been run.</summary>
975975
<remarks>
976976
<format type="text/markdown"><![CDATA[
977977
@@ -980,7 +980,7 @@
980980
981981
]]></format>
982982
</remarks>
983-
<exception cref="T:System.TypeInitializationException">The class initializer throws an exception.</exception>
983+
<exception cref="T:System.TypeInitializationException">The type initializer throws an exception.</exception>
984984
</Docs>
985985
</Member>
986986
<Member MemberName="RunModuleConstructor">
@@ -1056,4 +1056,4 @@
10561056
</Docs>
10571057
</Member>
10581058
</Members>
1059-
</Type>
1059+
</Type>

0 commit comments

Comments
 (0)