public static void Copy(RemoteDeviceData src, RemoteDeviceData dest) { dest.Room = src.Room; dest.User = src.User; // Copy PeerConnections dest.PeerConnections.Clear(); foreach (var t in src.PeerConnections) { dest.PeerConnections.Add(t); } }
public RemoteDeviceData(RemoteDeviceData other) // copy constructor { Copy(other, this); }