public void FillCodeTable(IEnumerable <IFieldInfoEx> fields) { if (fields == null) { return; } var decodeFields = from item in fields where item.Decoder != null && item.Decoder.Type == DecoderType.CodeTable select item; foreach (var item in decodeFields) { IDecoder coder = GetDecoder(item.Decoder); if (coder != null) { coder.Fill(CodeTables); } } }