public static PropertyBlock Create( string propertyModifiers, string propertyType, string propertyName) { PropertyBlock result = new PropertyBlock(); if (!string.IsNullOrEmpty(propertyModifiers)) { result.Modifiers.SetMany(propertyModifiers); } if (!string.IsNullOrEmpty(propertyType)) { result.Modifiers.Set(propertyType); } if (!string.IsNullOrEmpty(propertyName)) { result.Name = propertyName; } return(result); }
public virtual void Visit(PropertyBlock block) { }
public override void Visit(PropertyBlock block) { }
public static PropertyBlock Create( string propertyModifiers, string propertyType, string propertyName) { PropertyBlock result = new PropertyBlock(); if (!string.IsNullOrEmpty(propertyModifiers)) { result.Modifiers.SetMany(propertyModifiers); } if (!string.IsNullOrEmpty(propertyType)) { result.Modifiers.Set(propertyType); } if (!string.IsNullOrEmpty(propertyName)) { result.Name = propertyName; } return result; }
public override void Visit(PropertyBlock block) { WriteIndent(); Write(block.Modifiers); Write(block.Name); NewLine(); StartBlock(); if (block.GetAccessor != null) { Visit(block.GetAccessor); } if (block.SetAccessor != null) { Visit(block.SetAccessor); } EndBlock(); }