private EvaluateProperty ( string key, |
||
key | string | |
property | ||
dictionaryAdapter | IDictionaryAdapter | |
return |
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); }
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; }