/// <summary>
 /// Initializes a new instance of the <see cref="SimpleProperty"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 /// <param name="prefix">The prefix.</param>
 /// <param name="getter">The getter.</param>
 /// <param name="setter">The setter.</param>
 public SimpleProperty(string name, Type type, string prefix, AbstractGetter getter, AbstractSetter setter)
 {
     this.name    = name;
     this.setter  = setter;
     this.getter  = getter;
     this.prefix  = prefix;
     variableType = type;
 }
Beispiel #2
0
 /// <summary>
 /// Visits the specified setter.
 /// </summary>
 /// <param name="setter">The setter.</param>
 public void Visit(AbstractSetter setter)
 {
     if (setter == null)
     {
         throw new ArgumentNullException("setter");
     }
     indent();
     writer.WriteLine("set");
     renderBody(setter.Body);
 }