static void doUpdate23(mtest.Ipublishable_dictionary data) { mtest.BasicTypes bt = new mtest.BasicTypes(); bt.anInt = -999; bt.aString = "someName"; data.data.dictionary_four["someName"] = bt; }
static void doUpdate22(mtest.Ipublishable_dictionary data) { mtest.Idu_one du = new mtest.du_one(); du.setCurrentVariant(mtest.du_one_variants.one); du.D1 = -100.001; du.D2 = -200.002; du.D3 = -300.003; data.data.dictionary_three[-6] = du; }
// replace full element in dictionary static void doUpdate21(mtest.Ipublishable_dictionary data) { mtest.IAggregateType aggr1 = new mtest.AggregateType(); aggr1.name = "aggr1"; aggr1.theAggregate.anInt = -15; aggr1.theAggregate.anUInt = 15; aggr1.theAggregate.aReal = 13.14; aggr1.theAggregate.aString = "hello2!"; aggr1.lastValue = 199; data.data.dictionary_two[2] = aggr1; }
static void doUpdate3(mtest.Ipublishable_dictionary data) { data.data.dictionary_one.Remove("red"); }
static void doUpdate2(mtest.Ipublishable_dictionary data) { data.data.dictionary_one["hello"] = "goodbye"; }
static void doUpdate1(mtest.Ipublishable_dictionary data) { data.data.dictionary_one.Add("hello", "world"); data.data.dictionary_one.Add("red", "blue"); data.data.dictionary_one.Add("dog", "cat"); }
static void doUpdate26(mtest.Ipublishable_dictionary data) { data.data.dictionary_four["someName"].aReal = 9; }
static void doUpdate25(mtest.Ipublishable_dictionary data) { data.data.dictionary_three[-6].Data.Add(-400.004); }
// modify sub element in dictionary static void doUpdate24(mtest.Ipublishable_dictionary data) { data.data.dictionary_two[2].lastValue = 0; }