System.Xaml.AmbientProvider.DoesAmbientPropertyApply C# (CSharp) Method

DoesAmbientPropertyApply() private method

private DoesAmbientPropertyApply ( System.Xaml.AmbientPropertyValue p, IEnumerable types ) : bool
p System.Xaml.AmbientPropertyValue
types IEnumerable
return bool
		bool DoesAmbientPropertyApply (AmbientPropertyValue p, IEnumerable<XamlType> types, params XamlMember [] properties)
		{
			if (types == null || !types.Any () || types.Any (xt => xt.UnderlyingType != null && xt.UnderlyingType.IsInstanceOfType (p.Value)))
				if (properties == null || !properties.Any () || properties.Contains (p.RetrievedProperty))
					return true;
			return false;
		}