From ba988f7f28aaf4a1d97e6ebea76ebed658fdbc9a Mon Sep 17 00:00:00 2001 From: Raistlin Wolfe Date: Mon, 12 Sep 2022 18:43:28 -0600 Subject: [PATCH] Update TypeExtensions.cs Added xml comment on IsCastableFrom --- Scripts/TypeExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/TypeExtensions.cs b/Scripts/TypeExtensions.cs index 5f79664..ae49c31 100644 --- a/Scripts/TypeExtensions.cs +++ b/Scripts/TypeExtensions.cs @@ -3,6 +3,7 @@ using System.Reflection; public static class TypeExtensions { + /// Determines whether an instance of a specified type can be assigned to a variable of the current type. public static bool IsCastableFrom(this Type to, Type from) { if ( to.IsAssignableFrom ( from ) )