2 suixin3996 suixin3996 于 2014.01.27 22:18 提问

请帮我把下面的C#翻译成vb.net,实在看不懂,谢谢

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.IO;

namespace SyncChatServer
{
class User
{
public TcpClient client { get; private set; }
public BinaryReader br { get; private set; }
public BinaryWriter bw { get; private set; }
public string userName { get; set; }

    public User(TcpClient client)
    {
        this.client = client;
        NetworkStream networkStream = client.GetStream();
        br = new BinaryReader(networkStream);
        bw = new BinaryWriter(networkStream);
    }

    public void Close()
    {
        br.Close();
        bw.Close();
        client.Close();
    }

}

}

1个回答

ytmlmqj
ytmlmqj   2014.02.28 11:03
已采纳

下一个转换器就行了。很简单的。

Csdn user default icon
上传中...
上传图片
插入图片