Beispiel #1
0
        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);
	    }
Beispiel #2
0
        public void addHunk(HunkHeader h)
        {
            if (h.File != this)
            {
                throw new ArgumentException("Hunk belongs to another file");
            }

            Hunks.Add(h);
        }