我在c#中有三個控制器類。說AController,BController,CController。 我曾經使用AController設置BController的私有成員的值。從控制器從另一個控制器在c#中的值#
public BController{
string test = "";
public BController(string input)
{
this.test = input;
}
}
如何從CController訪問測試。
的任何方法而不是分配成員作爲靜態變量
也許,你錯誤的邏輯?你能提供更多的代碼和一些關於你的需求的更多信息嗎? – noobed 2014-10-29 14:21:04
[反映控制器列表](http://stackoverflow.com/questions/3680609/reflect-over-list-of-controllers) – Alexander 2014-10-29 14:21:56