Hi everyone,
I have to do this for a number of properties, and wondering if I can automate such that I give a tab sepparated table like this:
type propname objname
type propname objname
type propname objname
type propname objname
type propname objname
and each row is transfomed to an accessor like the code shown below. I was thinking of using several expand_alias command in a macro for this, but there does not seem to be a way to silently pass the parameters to the expand-alias command.
/// <summary>
/// Accessor for the %(propname) property in the %(objname) object.
/// </summary>
public %(type) %(propname)
{
get { return %(objname).%(propname); }
set { %(objname).%(propname) = value; }
}
Anyone have a macro that does something like this?
Any help appreciated,
Ted