コード例 #1
0
ファイル: FastObject.cs プロジェクト: tmnykf/Symbol
 bool TryProperty(PathNode node, string name)
 {
     try {
         System.Reflection.PropertyInfo propertyInfo = FastWrapper.GetProperty(node.model.GetType(), name);
         if (propertyInfo == null)
         {
             return(false);
         }
         node.value = propertyInfo.GetValue(node.model, new object[0]);// TypeExtensions.Get(node.model, property);
         return(true);
     } catch {
         node.value = null;
         return(false);
     }
 }