Have you determined the actual structure within each of the classes?
Even if you use the same name for them, the compiler will not consider them as the same type.
You must define the structure in one place and make it an object from both classes that must use it.
Example
public class A{ public struct MyStruct{ ... } } public class B{ public struct MyStruct{ ... } } A.MyStruct struct1 = new B.MyStruct();
This is not permitted, and in fact this is what you are trying to do. I suggest moving the structure from the class and placing it where both classes can access it.
Define it like this instead
public struct MyStruct{ ... } public class A{ ... } public class B{ ... } MyStruct struct1 = new MyStruct();
source share