i want to implement this code by using meta program
objectFactory.ComponentId="heihei"
print objectFactory.ComponentId
and i do as follows,how can i assign the value to the property
ComponentId,by now it's only can output the default ComponentId
[Meta]
public static Expression task()
{
var expressions = new List<Expression>();
var refExp = new ReferenceExpression("objectFactory");
var mre = new MemberReferenceExpression(refExp,
"ComponentId");
var method = new ReferenceExpression("print");
expressions.Add(mre);
var invoker = new MethodInvocationExpression(method,
expressions.ToArray());
return invoker;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to
boolang@...
To unsubscribe from this group, send email to
boolang-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/boolang-~----------~----~----~----~------~----~------~--~---