Skip to content

Document Type.IsAssignableTo #4898

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
Sep 22, 2020
Merged
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
20 changes: 16 additions & 4 deletions xml/System/Type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10881,7 +10881,7 @@ GetType(Array).IsAssignableFrom(type)
</Parameters>
<Docs>
<param name="c">The type to compare with the current type.</param>
<summary>Determines whether an instance of a specified type can be assigned to a variable of the current type.</summary>
<summary>Determines whether an instance of a specified type <paramref name="c" /> can be assigned to a variable of the current type.</summary>
<returns>
<see langword="true" /> if any of the following conditions is true:

Expand Down Expand Up @@ -10971,9 +10971,21 @@ GetType(Array).IsAssignableFrom(type)
</Parameter>
</Parameters>
<Docs>
<param name="targetType">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<param name="targetType">The type to compare with the current type.</param>
<summary>Determines whether the current type can be assigned to a variable of the specified <paramref name="targetType" />.</summary>
<returns><see langword="true" /> if any of the following conditions is true:

- The current instance and <paramref name="targetType" /> represent the same type.

- 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" />.

- <paramref name="targetType" /> is an interface that the current type implements.

- The current type is a generic type parameter, and <paramref name="targetType" /> represents one of the constraints of the current type.

- 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).

<see langword="false" /> if none of these conditions are true, or if <paramref name="targetType" /> or <see langword="this" /> is <see langword="null" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
Expand Down