2014-07-12 3 views
0

C#에서는 네임 스페이스가 많이 필요하고 VB에는 동일한 네임 스페이스의 동일한 클래스가 필요하지 않습니다.네임 스페이스 가져 오기 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 예 :

당신이 다음 C#에서 VB에서 적은 수입을 필요로하는 이유
Import System.Collections.Generic 
Import System.Drawing 
Import System.Drawing.Printing 
Import System.Linq 
Import System.Text 

?

+0

가능한 복제본 [VB.NET 2K8 : 클래스 내에서 모든 가져 오기를 표시하는 방법?] (http://stackoverflow.com/questions/5094365/vb-net-2k8-how-to-make-all- imports-visible-within-class) – Chris

+0

VB는 내가 생각하는 것보다 더 많은 참조를 자동으로 추가합니다. 체계를위한 체계와 양식 – Plutonix

답변

0

VB 프로젝트에는 프로젝트 내의 각 파일에 대해 가져올 기본 네임 스페이스를 나타내는 Imported Namespaces (프로젝트 속성 -> 참조 탭)이 있습니다. System 및 기타 몇 개의 네임 스페이스가 기본적으로이 목록에 추가됩니다.

관련 문제