// Don't use this unless you know exactly what you are doing internal void SetParent(ExifContent adoptor) { // NOTE this api is ugly but the check prevent the parent state // from getting confused. See ExifContent Add and Remove for the // other half. if (parent != null && parent.Contains(this)) { parent.Remove(this); } if (adoptor != null && !adoptor.Contains(this)) { adoptor.Add(this); } parent = adoptor; }
public ExifEntry (ExifContent parent, Tag tag) { handle = new HandleRef (this, exif_entry_new ()); parent.Add (this); this.Reset (tag); }
// Don't use this unless you know exactly what you are doing internal void SetParent (ExifContent adoptor) { // NOTE this api is ugly but the check prevent the parent state // from getting confused. See ExifContent Add and Remove for the // other half. if (parent != null && parent.Contains (this)) parent.Remove (this); if (adoptor != null && !adoptor.Contains (this)) adoptor.Add (this); parent = adoptor; }
public ExifEntry(ExifContent parent, Tag tag) { handle = new HandleRef(this, exif_entry_new()); parent.Add(this); this.Reset(tag); }