【发布时间】:2011-12-31 16:25:38
【问题描述】:
我可能遗漏了一些非常明显的东西,但现在我看不到了。我有对System.Windows.Forms 的引用,我有下一个using 类:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
using System.Windows.Forms;
using System.Windows.Forms.FolderBrowserDialog;
但是编译器总是给我下一个错误:
错误 CS0138:使用命名空间指令只能应用于 命名空间; 'System.Windows.Forms.FolderBrowserDialog' 是一种类型而不是 命名空间
【问题讨论】:
-
错误信息很明确,我觉得不需要额外解释...
-
是的,我想我会删除这个问题。
-
我发现 java 脑损伤。
标签: c# namespaces using