Yes it will. Here is an example showing this in action:
struct Foo { public int X; public Bar B; } struct Bar { public int Y; } public class Program { static void Main(string[] args) { Foo foo; foo.X = 1; foo.BY = 2;
How about whether this structure contains a different structure?
Yes. In general, although it might be a bad idea to create such complex structures, they usually should contain only a few simple values. If you have structures inside structures inside structures, you might wonder if the reference type is suitable.
source share