Exemplo n.º 1
0
        public override IBELObject Expose(ExecutionContext ctx)
        {
            IBELObject answer = null;
            ArrayList args = new ArrayList();
            foreach (object x in AllArgs)
                args.Add(x);
            try
            {
                ctx.PushLocation(Location);
                answer = ctx.FindAndInvoke(FullMethodName, args);
                if (answer == null)
                    throw NoSuchMemberException.ForMember(Location, FullMethodName);
            }
            finally
            {
                ctx.PopLocation();
            }

            return answer;
        }
Exemplo n.º 2
0
		public override IBELObject Expose(ExecutionContext ctx)
		{
			ArrayList args = new ArrayList();
			foreach (object x in AllArgs)
				args.Add(x);
			IBELObject answer = ctx.FindAndInvoke(FullMethodName, args);
			if (answer == null)
				throw NoSuchMemberException.ForMember(FullMethodName);
			return answer;
		}