public void CombineWith(ElementValuesCollection nextElementValuesCollection) { Guid = nextElementValuesCollection.Guid; NextCollectionGuid = nextElementValuesCollection.NextCollectionGuid; DoubleAliases.Add(nextElementValuesCollection.DoubleAliases); DoubleValueStatusCodes.Add(nextElementValuesCollection.DoubleValueStatusCodes); DoubleTimestamps.Add(nextElementValuesCollection.DoubleTimestamps); DoubleValues.Add(nextElementValuesCollection.DoubleValues); UintAliases.Add(nextElementValuesCollection.UintAliases); UintValueStatusCodes.Add(nextElementValuesCollection.UintValueStatusCodes); UintTimestamps.Add(nextElementValuesCollection.UintTimestamps); UintValues.Add(nextElementValuesCollection.UintValues); ObjectAliases.Add(nextElementValuesCollection.ObjectAliases); ObjectValueStatusCodes.Add(nextElementValuesCollection.ObjectValueStatusCodes); ObjectTimestamps.Add(nextElementValuesCollection.ObjectTimestamps); ObjectValues = Google.Protobuf.ByteString.CopyFrom( ObjectValues.Concat(nextElementValuesCollection.ObjectValues).ToArray() ); }