سلام بر تمامی برنامه نویسان #C 😉 در این مطلب آموزش Serialize کردن SocketAddress از IPEndPoint در سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
خروجی این کد به این صورت است:
The SocketAddress is: InterNetwork:16:{31,64,192,168,1,1,0,0,0,0,0,0,0,0}
کد Serialize کردن SocketAddress از IPEndPoint در سی شارپ #C :
using System;
using System.Net;
class MainClass
{
public static void Main()
{
IPAddress test1 = IPAddress.Parse("192.168.1.1");
IPEndPoint ie = new IPEndPoint(test1, 8000);
SocketAddress sa = ie.Serialize();
using System.Net;
class MainClass
{
public static void Main()
{
IPAddress test1 = IPAddress.Parse("192.168.1.1");
IPEndPoint ie = new IPEndPoint(test1, 8000);
SocketAddress sa = ie.Serialize();