예제 #1
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;
        }
예제 #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);
        }