在其他班级的班级后面访问代码 [英] Access to code behind classes in other class
本文介绍了在其他班级的班级后面访问代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在其他类(App_code)中访问项目类背后的代码?我尝试过,但是我无法访问课程背后的代码!
how i can access to code behind classes of project in other class(App_code)? I try, but i can not access to code behind class! it is possible?
推荐答案
代码隐藏类只不过是普通类.
因此,可以根据标准访问修饰符(即公共,私有等)访问代码隐藏类中的任何内容.
A code-behind class is nothing but a normal class.
So anything in a code-behind class would be accessible based on standard access modifiers (i.e. public, private etc).
这篇关于在其他班级的班级后面访问代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文