TESVSnip.Domain.Model.Plugin.GetRecordList C# (CSharp) Method

GetRecordList() public method

Python helper function to get list of records.
public GetRecordList ( IEnumerable types ) : TESVSnip.Domain.Model.Record[]
types IEnumerable Collection of types
return TESVSnip.Domain.Model.Record[]
        public Record[] GetRecordList(IEnumerable types)
        {
            if (types == null)
                return EnumerateRecords(null).Select(x => x.Value).ToArray();

            var vtypes = new HashSet<string>(types.OfType<string>());
            Predicate<BaseRecord> itr = (rec) => (rec is Plugin)
                || (rec is GroupRecord && (((GroupRecord)rec).groupType != 0 || vtypes.Contains(((GroupRecord)rec).ContentsType)))
                || (rec is Record && vtypes.Contains(rec.Name));
            return Enumerate(itr).OfType<Record>().ToArray();
        }

Same methods

Plugin::GetRecordList ( string type ) : TESVSnip.Domain.Model.Record[]