I need to treat BELArray::Collect the same way. Code for it would be:

        [ExposedMethod(ExposedMethodFlags.NeedContext, "Evalute the given
block once for each object in the array; answer a new array containing the
result of each block evaluation.")]
        public BELArray Collect(ExecutionContext ctx, Block block)
        {
            BELArray answer = new BELArray();

            foreach (IBELObject each in Array)
            {
                try
                {
                    ArrayList parms = new ArrayList();
                    parms.Add(each);
                    answer.Add(block.Value(ctx, parms));
                }
                catch (FlexWikiAuthorizationException ex)
                {
                    if (ex != null)
                    {
                        ex = null;
                    }
                }

            }
            return answer;
        }


this is all that I can find quickly.

John Davidson
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to