获取外部参考 [英] Get reference to external

查看:70
本文介绍了获取外部参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ParentClass ----> MyApp.exe

ParentClass---->MyApp.exe

ChildClass ____> ParentClass

ChildClass____>ParentClass

我已经使用ParentClass创建了MyApp.exe文件.我的要求是使用ParentClass的引用从外部ChildClass(通过继承ParentClass创建并且不包含在MyApp.exe中)创建对象.

I’ve created MyApp.exe file with ParentClass. My requirement is to create the object from external ChildClass(created by inheriting ParentClass and not included in to MyApp.exe) with the reference of ParentClass.

是否可以这样做?我是C#的新手,有人可以向我解释一下吗?

Is it possible to do this? I’m new to C# and can someone kindly explain me this?

推荐答案

有两种方法,可以在其中添加对MyApp.exe的引用外部应用.然后导入ParentClass名称空间并完成. (要添加参考,请选择项目"菜单->添加参考"->浏览"标签->选择您的MyApp.exe->确定")

There are two ways, Add reference to MyApp.exe in the external app. Then import the ParentClass namespace and Done. (To add reference, Select Project menu -> Add Reference -> Browse Tab -> Select your MyApp.exe -> OK)

我希望这会有所帮助.


这篇关于获取外部参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆