EvaluateProperty() private method

private EvaluateProperty ( string key, PropertyDescriptor property, IDictionaryAdapter dictionaryAdapter ) : XPathResult
key string
property PropertyDescriptor
dictionaryAdapter IDictionaryAdapter
return System.Xml.XPath.XPathResult
Esempio n. 1
0
        public static bool IsPropertyDefined(string propertyName, IDictionaryAdapter dictionaryAdapter, XPathAdapter xpath)
        {
            var key = dictionaryAdapter.GetKey(propertyName);

            if (key == null)
            {
                return(false);
            }
            var property = dictionaryAdapter.Meta.Properties[propertyName];
            var result   = xpath.EvaluateProperty(key, property, dictionaryAdapter);

            return(result.GetNavigator(false) != null);
        }
Esempio n. 2
0
		public static bool IsPropertyDefined(string propertyName, IDictionaryAdapter dictionaryAdapter, XPathAdapter xpath)
		{
			var key = dictionaryAdapter.GetKey(propertyName);
			if (key == null) return false;
			var property = dictionaryAdapter.This.Properties[propertyName];
			var result = xpath.EvaluateProperty(key, property, dictionaryAdapter);
			return result.GetNavigator(false) != null;
		}