public object ResolveQualifiedName(object target,string[] qualifiedName)
        {
            object value = QualifiedNames != null ? QualifiedNames.ResolveQualifiedName(target, qualifiedName) : null;

            if (value == null)
            {
                var args = new UnknownQualifiedNameEventArgs(qualifiedName, target);
                var evt = ResolveUnknownQualifiedName;
                if (evt != null)
                    evt(this, args);
                value = args.Value;
            }

            return value;
        }
示例#2
0
        public object ResolveQualifiedName(object target, string[] qualifiedName)
        {
            object value = QualifiedNames != null?QualifiedNames.ResolveQualifiedName(target, qualifiedName) : null;

            if (value == null)
            {
                var args = new UnknownQualifiedNameEventArgs(qualifiedName, target);
                var evt  = ResolveUnknownQualifiedName;
                if (evt != null)
                {
                    evt(this, args);
                }
                value = args.Value;
            }

            return(value);
        }