mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 01:06:01 +08:00
Update TypeExtensions.cs
Added xml comment on IsCastableFrom
This commit is contained in:
parent
5e3c5c0012
commit
ba988f7f28
@ -3,6 +3,7 @@ using System.Reflection;
|
||||
|
||||
public static class TypeExtensions
|
||||
{
|
||||
/// <summary> Determines whether an instance of a specified type can be assigned to a variable of the current type. </summary>
|
||||
public static bool IsCastableFrom(this Type to, Type from)
|
||||
{
|
||||
if ( to.IsAssignableFrom ( from ) )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user