Pass a dynamic value in project 1 to the method in project 2, for example: var temp = new {d1 = 1, d2 = 2, d3 = 3};
Transmit temp for method in project 2: public static bool Ex(dynamic p), in project 2, result p {d1 = 1, d2 = 2, d3 = 3}, but p.d1 will fail.
help me!
What I have tried:
Project 1:
var temp = new {d1=1,d2=2,d3=3};
Project2.Ex(temp).
In Project 2:
public static bool Ex(dynamic p)
{
Result p {d1=1,d2=2,d3=3}, but p.d1 . . . will fail?
}