question

MohammedRafiAchukatla-5209 avatar image
0 Votes"
MohammedRafiAchukatla-5209 asked AgaveJoe commented

How to solve circular reference in c# using delegates

Hi Team,

How can we solve the circualr reference with the Call backs(delegates), Am having two projects like project 1 and project 2....already project 1 reference in the project 2, but we need to send the data from project 2 to project 1 , i cannot add reference ...because it may become circular referrence, and also we dont need to use layer architecture...we need to make call backs ....Is it possible with delegates ....if yes pls give explanation.

Regards,
Mohammed Rafi

dotnet-csharp
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What kind of projects are these? Could you explain what you are trying to do a little better?

0 Votes 0 ·

Normal Windows based application....I making call to project 2 from project 1......project 2 will return the value and that value has to return to project 1, but here we have not to use layer architecture .....Need to do with delegates .

0 Votes 0 ·

1 Answer

vb2ae avatar image
0 Votes"
vb2ae answered AgaveJoe commented
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your reply,


May be we can use the MVVM pattern, can't we make callbacks(delegates) between two projects ?

0 Votes 0 ·
AgaveJoe avatar image AgaveJoe MohammedRafiAchukatla-5209 ·

can't we make callbacks(delegates) between two projects ?

The standard programming pattern is to implement a a shared library (DLL) that both projects reference.

1 Vote 1 ·