YAMP.TypeExtensions.SupportsCastFrom C# (CSharp) Method

SupportsCastFrom() public static method

public static SupportsCastFrom ( this from, Object instance ) : System.Boolean
from this
instance Object
return System.Boolean
        public static Boolean SupportsCastFrom(this Type from, Object instance)
        {
            var to = instance.GetType();
            return IsCastableTo(from, to);
        }