Exemple #1
0
        internal object ResolvePath(string pathText, PluginTreeNode origin)
        {
            ObtainMode mode;

            return(this.ResolvePath(PluginPath.PreparePathText(pathText, out mode), origin, mode));
        }
Exemple #2
0
        /// <summary>
        /// 根据指定的路径文本获取其对应的缓存对象或该对象的成员值。
        /// </summary>
        /// <param name="pathText">要获取的路径文本,该文本可以用过句点符号(.)表示缓存对象的成员名。</param>
        /// <returns>返回获取的缓存对象或其成员值。</returns>
        /// <exception cref="System.ArgumentNullException"><paramref name="pathText"/>参数为空或全空字符串。</exception>
        /// <remarks>
        /// 注意:成员名只能是公共的实例属性或字段。
        /// <example>/Workspace/Environment/ApplicationContext.ApplicationId</example>
        /// </remarks>
        public object ResolvePath(string pathText)
        {
            ObtainMode mode;

            return(this.ResolvePath(PluginPath.PreparePathText(pathText, out mode), this.PluginTree.RootNode, mode));
        }