System.Reflection.Binder.Default.IsArrayAssignable C# (CSharp) 메소드

IsArrayAssignable() 정적인 개인적인 메소드

static private IsArrayAssignable ( Type object_type, Type target_type ) : bool
object_type Type
target_type Type
리턴 bool
			static bool IsArrayAssignable (Type object_type, Type target_type)
			{
				if (object_type.IsArray && target_type.IsArray)
					return IsArrayAssignable (object_type.GetElementType (), target_type.GetElementType ());
						
				if (target_type.IsAssignableFrom (object_type))
					return true;

				return false;
			}