static void doUpdate2(mtest.Ipublishable_dunion data) { //modify existing elements data.anUnion.setCurrentVariant(mtest.du_one_variants.two); data.anUnion.Data.Add(3.14); data.anUnion.Data.Add(-3.14); data.anUnion.Data.Add(-3.14e-20); }
static void doUpdate1(mtest.Ipublishable_dunion data) { //modify substructure inside vector data.anUnion.setCurrentVariant(mtest.du_one_variants.one); data.anUnion.D1 = 3.14; data.anUnion.D2 = -3.14; data.anUnion.D3 = -3.14e-20; }