Skip to content

Commit ea474ec

Browse files
authored
Document Type.IsAssignableTo (#4898)
Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>
1 parent dd40e22 commit ea474ec

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

xml/System/Type.xml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10881,7 +10881,7 @@ GetType(Array).IsAssignableFrom(type)
1088110881
</Parameters>
1088210882
<Docs>
1088310883
<param name="c">The type to compare with the current type.</param>
10884-
<summary>Determines whether an instance of a specified type can be assigned to a variable of the current type.</summary>
10884+
<summary>Determines whether an instance of a specified type <paramref name="c" /> can be assigned to a variable of the current type.</summary>
1088510885
<returns>
1088610886
<see langword="true" /> if any of the following conditions is true:
1088710887

@@ -10971,9 +10971,21 @@ GetType(Array).IsAssignableFrom(type)
1097110971
</Parameter>
1097210972
</Parameters>
1097310973
<Docs>
10974-
<param name="targetType">To be added.</param>
10975-
<summary>To be added.</summary>
10976-
<returns>To be added.</returns>
10974+
<param name="targetType">The type to compare with the current type.</param>
10975+
<summary>Determines whether the current type can be assigned to a variable of the specified <paramref name="targetType" />.</summary>
10976+
<returns><see langword="true" /> if any of the following conditions is true:
10977+
10978+
- The current instance and <paramref name="targetType" /> represent the same type.
10979+
10980+
- The current type is derived either directly or indirectly from <paramref name="targetType" />. The current type is derived directly from <paramref name="targetType" /> if it inherits from <paramref name="targetType" />; the current type is derived indirectly from <paramref name="targetType" /> if it inherits from a succession of one or more classes that inherit from <paramref name="targetType" />.
10981+
10982+
- <paramref name="targetType" /> is an interface that the current type implements.
10983+
10984+
- The current type is a generic type parameter, and <paramref name="targetType" /> represents one of the constraints of the current type.
10985+
10986+
- The current type represents a value type, and <paramref name="targetType" /> represents <c>Nullable&lt;c&gt;</c> (<c>Nullable(Of c)</c> in Visual Basic).
10987+
10988+
<see langword="false" /> if none of these conditions are true, or if <paramref name="targetType" /> or <see langword="this" /> is <see langword="null" />.</returns>
1097710989
<remarks>To be added.</remarks>
1097810990
</Docs>
1097910991
</Member>

0 commit comments

Comments
 (0)