Esempio n. 1
0
 /// <summary>
 /// Create a new Socket object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Socket CreateSocket(global::System.Int32 id, global::System.String name)
 {
     Socket socket = new Socket();
     socket.Id = id;
     socket.Name = name;
     return socket;
 }
Esempio n. 2
0
 private bool FilterSocket(Socket entity)
 {
     return (entity.Id == this.SocketId);
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sockets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSockets(Socket socket)
 {
     base.AddObject("Sockets", socket);
 }