![](/img/trans.png)
[英]how to create an instance of a class of another module without adding reference using prism in wpf
[英]How to call the reference from one class to another class using PRISM
我只是努力將引用從一個類調用到另一個類,但是這兩個類在同一個解決方案中處於不同的項目中。
這是我想要做的。
項目A(Webster.Client.Modules.Metadata)類名:Helper.cs
Projec B(Webster.Client.Infrastructure)
類名:ImageResizerService.cs
接口:IImageResizerService.cs我試圖在我的ImageResizerService類中使用helper類。
當我嘗試添加項目引用時,它會拋出“無法添加對Webster.Client.Modules.Metadata的引用。添加此項目作為引用將導致循環依賴”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.