public void addHunk(HunkHeader h) { if (h.getFileHeader() != this) throw new ArgumentException("Hunk belongs to another file"); if (hunks == null) hunks = new List<HunkHeader>(); hunks.Add(h); }
public void addHunk(HunkHeader h) { if (h.File != this) { throw new ArgumentException("Hunk belongs to another file"); } Hunks.Add(h); }