public void Visit(CilProperty property) { WritePropertyHeader(property); WriteIndentation(); _writer.WriteLine('{'); WritePropertyBody(property); WriteIndentation(); _writer.WriteLine('}'); _writer.WriteLine(); }
public PropertyNode(CilProperty cp) { _property = cp; if (cp.HasGetter) { _children.Add(new MethodNode(cp.Getter)); } if (cp.HasSetter) { _children.Add(new MethodNode(cp.Setter)); } }
private void WritePropertyHeader(CilProperty property) { WriteIndentation(); _writer.Write(".property "); if (_options.ShowBytes) { _writer.Write("/* {0:X8} */ ", property.Token); } _writer.WriteLine(property.GetDecodedSignature()); if (property.HasDefault) { WriteIndentation(); _writer.WriteLine(string.Format(" = {0}", property.DefaultValue.GetValueString())); } }
private void WritePropertyBody(CilProperty property) { Indent(); foreach (var attribute in property.CustomAttributes) { attribute.Accept(this); } if (property.HasGetter) { WriteIndentation(); _writer.Write(".get "); WritePropertyOrEventAccessor(property.Getter); } if (property.HasSetter) { WriteIndentation(); _writer.Write(".set "); WritePropertyOrEventAccessor(property.Setter); } Unindent(); }
private void WritePropertyHeader(CilProperty property) { WriteIndentation(); _writer.Write(".property "); if (_options.ShowBytes) _writer.Write("/* {0:X8} */ ", property.Token); _writer.WriteLine(property.GetDecodedSignature()); if (property.HasDefault) { WriteIndentation(); _writer.WriteLine(string.Format(" = {0}", property.DefaultValue.GetValueString())); } }
private void WritePropertyBody(CilProperty property) { Indent(); foreach (var attribute in property.CustomAttributes) { attribute.Accept(this); } if (property.HasGetter) { WriteIndentation(); _writer.Write(".get "); WritePropertyOrEventAccessor(property.Getter); } if (property.HasSetter) { WriteIndentation(); _writer.Write(".set "); WritePropertyOrEventAccessor(property.Setter); } Unindent(); }
public void Visit(CilProperty property) { WritePropertyHeader(property); WriteIndentation(); _writer.WriteLine('{'); WritePropertyBody(property); WriteIndentation(); _writer.WriteLine('}'); _writer.WriteLine(); }