【发布时间】:2014-09-02 22:39:26
【问题描述】:
在 C# 中,您需要很多命名空间,而在 VB 中,不需要来自相同命名空间的相同类。
C# 示例:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
VB 示例:
Import System.Collections.Generic
Import System.Drawing
Import System.Drawing.Printing
Import System.Linq
Import System.Text
为什么在 VB 中需要比在 C# 中更少的导入?
【问题讨论】:
-
VB 会自动添加我认为的更多内容的引用。实例系统和表单
标签: c# vb.net namespaces