예제 #1
0
 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);
 }
		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;
		}
예제 #3
0
 public void Push(AmbientPropertyValue v)
 {
     live_stack.Push(v);
     values.Add(v);
 }
		public void Push (AmbientPropertyValue v)
		{
			live_stack.Push (v);
			values.Add (v);
		}