private static IEnumerable <WriteItem> CreateWriteNodeIdCollection(this Dacs7Client client, IEnumerable <KeyValuePair <string, object> > values) { return(new List <WriteItem>(values.Select(item => { var result = client.RegisteredOrGiven(item.Key).Clone(); result.Data = result.ConvertDataToMemory(item.Value); return WriteItem.NormalizeAndValidate(result); }))); }
internal static IEnumerable <ReadItem> CreateNodeIdCollection(this Dacs7Client client, IEnumerable <string> values) => new List <ReadItem>(values.Select(item => client.RegisteredOrGiven(item)));