I have an object model, based on TCP Connections, which belong to Connections, which belong to Managers. It seems like two TCP Connections are different, which I can see, but when I try to see the same for the Connections they belong to, I get error message CS0211: Cannot take the address of the given expression
. Do anybody know why and how I can handle this?
Watch window content for both TCP Connections:
&connectionManager.Connection.TcpConnection 0x00007fe80035f670
&Connection_For_Message.TcpConnection 0x00007fe70042bf08
=> both TCPConnections are in another memory address, so they are clearly different (although all their values, properties and attributes are equal).
When asking the same for the Connections, this does not work:
&connectionManager.Connection error CS0211: Cannot take the address of the given expression
&Connection_For_Message 0x00007fe700375230
Why is that?
For your information: when I ask for connectionManager.Connection
(not the address, just the data), everything is ok.
Thanks in advance