System.Xaml.XamlObjectWriterInternal.IsAllowedType C# (CSharp) Méthode

IsAllowedType() private méthode

private IsAllowedType ( XamlType xt, object value ) : bool
xt XamlType
value object
Résultat 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);
		}