/// <summary> /// Adds the channel. /// </summary> /// <param name="channelId">The channel identifier.</param> /// <param name="mnemonic">The mnemonic.</param> /// <param name="unit">The unit.</param> /// <param name="dataType">The data type.</param> /// <param name="nullValue">The null value.</param> public void AddChannel(long channelId, string mnemonic, string unit, string dataType, string nullValue = null) { if (Mnemonics.Any(x => x.EqualsIgnoreCase(mnemonic))) { return; } ChannelIds.Add(channelId); Mnemonics.Add(mnemonic); Units.Add(unit); DataTypes.Add(dataType); NullValues.Add(nullValue); }
public void Add(Mnemonic expression) { Mnemonics.Add(expression); }