关于C#的智能感知属性 [英] Regarding intellisense property of C#
本文介绍了关于C#的智能感知属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用C#Windows应用程序.我的 prob 问题是当我在应用程序中添加新的类文件时,intellisense属性在该类文件中不起作用.所以我不能包含任何额外的名称空间.所以 pls 请任何人帮助我.我是c锋利的新手.
[已编辑]更正的短文本[/已编辑]
hi to all,
I''m working in c# windows application. my prob problem is when I add new class file in the application, intellisense property not working in that class file. so I can''t include any extra namespaces. so pls please any one help me. I''m new to c sharp.
Corrected short texts[/Edited]
推荐答案
这是添加类文件的正确位置吗?验证一下!!!如果添加类文件的位置无效,则会发生这种情况.
is this a right place where you are adding the class file ? verify it!!! if it is an invalid location to add class file it happens..
当您说不工作"时,是什么意思?
我刚刚尝试了一下,效果很好:
When you say "not working" what do you mean?
I just tried it, and it worked fine:
myClass mc = new myClass();
mc. <---Intellisense finds the property and method here
}
}
public class myClass
{
public myClass()
{ }
public int MyProperty { get; set; }
public int MyMethod(int myParam) { return 0; }
}
您在做什么与我的代码不同?
What are you doing that is different from my code?
以下链接可能对您有帮助
试试这个:
http://forums.asp.net/t/1424104.aspx/1 [ ^ ]
The Following Link May Help You
Try This:
http://forums.asp.net/t/1424104.aspx/1[^]
Thanks
Yogesh
这篇关于关于C#的智能感知属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文