public void Dispose() { if (propertyName != null) this.Unset(propertyName); if (parent != null) { parent.Dispose(); parent = null; } }
public LogProps Set(string propertyName, object propertyValue) { LogProps p = new LogProps(this.logger, propertyName, propertyValue); p.parent = this; return p; }