System.Xaml.XamlObjectWriterInternal.IsAllowedType C# (CSharp) Method

IsAllowedType() private method

private IsAllowedType ( XamlType xt, object value ) : bool
xt XamlType
value object
return bool
		bool IsAllowedType (XamlType xt, object value)
		{
			return  xt == null ||
				xt.UnderlyingType == null ||
				xt.UnderlyingType.IsInstanceOfType (value) ||
				value == null && xt == XamlLanguage.Null ||
				xt.IsMarkupExtension && IsAllowedType (xt.MarkupExtensionReturnType, value);
		}