TESVSnip.Domain.Model.GroupRecord.InsertRecords C# (CSharp) Method

InsertRecords() public method

public InsertRecords ( int index, IEnumerable br ) : void
index int
br IEnumerable
return void
        public override void InsertRecords(int index, IEnumerable<BaseRecord> br)
        {
            if (br.Count(r => !(r is Record || r is GroupRecord)) > 0)
            {
                throw new TESParserException("Record to add was not of the correct type.\nGroups can only hold records or other groups.");
            }

            this.records.InsertRange(index, br.OfType<Rec>());
            FireRecordListUpdate(this, this);
        }