Пример #1
0
 public BlockRecord(string name, int index, bool hasStartFlags, DFBlock.BlockTypes blockType, DFBlock.RdbTypes rdbtype)
 {
     this.name          = name;
     this.index         = index;
     this.hasStartFlags = hasStartFlags;
     this.blockType     = blockType;
     this.RdBType       = rdbtype;
 }
 public List <BlockRecord> FilterBlocks(List <BlockRecord> blockRecords, DFBlock.BlockTypes blockType, bool reverseFilter = false)
 {
     return(blockRecords.Where(block => (block.blockType == blockType) != reverseFilter).ToList <BlockRecord>());
 }