public int BatchWrite(Dictionary <string, object> tags, bool sync) { if (group == null) { return(-1); } SortedDictionary <ITag, object> dict = new SortedDictionary <ITag, object>(); foreach (var item in tags) { var tag = this[item.Key]; if (tag != null) { dict.Add(tag, item.Value); } } return(group.BatchWrite(dict, sync)); }