/// <summary> /// Checks if the port belongs to this module /// </summary> /// <param name="port">The port whose ownership is being checked</param> /// <returns></returns> protected bool IsMyPort(VPort port) { lock (myPorts) { foreach (VPort myport in myPorts) { if (port.Equals(myport)) { return(true); } } } return(false); }