2012-03-02 75 views
0

我檢查出一個示例應用程序源代碼和有:.NET 3.5中的GetGlobalAsaxType的替代方法?

var assembly = BuildManager.GetGlobalAsaxType().BaseType.Assembly.GetName().Name; 

但在.NET 3.5,沒有BuildManager.GetGlobalAsaxType()。在.NET 3.5中有沒有其他方法可以做到這一點?

回答

0

你試過HttpContext.Current.ApplicationInstance.GetType()而不是BuildManager.GetGlobalAsaxType()

相關問題