internal static void FireAll(DemoModel model, ExtModel extModel) { model.Boolean_property.Set(false); model.Boolean_array.Set(new[] { false, true, false }); var scalar = new MyScalar( false, 50, 32000, 1000000000, -2000000000000000000, 3.14f, -123456789.012345678, byte.MaxValue - 1, ushort.MaxValue - 1, uint.MaxValue - 1, ulong.MaxValue - 1, MyEnum.net, Flags.anyFlag | Flags.netFlag, MyInitializedEnum.hundred ); // ReSharper disable once UnusedVariable // ReSharper disable once InconsistentNaming var(_bool, _byte, _short, _int, _long, _float, _double, _unsigned_byte, unsigned_short, _unsigned_int, _unsigned_long, _my_enum, _flags, initializedEnum) = scalar; var(first, second) = new ComplicatedPair(new Derived("First"), new Derived("Second")); model.Scalar.Set(scalar); model.Set.Add(50); model.MapLongToString.Add(50, "C#"); const string valA = "C#"; const string valB = "protocol"; model.Interned_string.Set(valA); model.Interned_string.Set(valA); model.Interned_string.Set(valB); model.Interned_string.Set(valB); model.Interned_string.Set(valA); var derived = new Derived("C# instance"); model.Polymorphic.Set(derived); var openDerived = new OpenDerived("C# instance open derived string", "C# instance open string"); model.Polymorphic_open.Set(openDerived); var openClass = new OpenClass("c# test"); openClass.String.Set("property"); model.Enum.Value = MyEnum.net; extModel.Checker.Fire(); model.Struct_with_open_field.Value = new StructWithOpenStructField(new OpenStructInField("", "", 456, "", "")); }
static void FireAll(DemoModel model, ExtModel extModel) { model.Boolean_property.Set(false); model.Boolean_array.Set(new[] { false, true, false }); var scalar = new MyScalar(false, 50, 32000, 1000000000, -2000000000000000000, 3.14f, -123456789.012345678, byte.MaxValue - 1, ushort.MaxValue - 1, uint.MaxValue - 1, ulong.MaxValue - 1, MyEnum.net, Flags.anyFlag | Flags.netFlag ); model.Scalar.Set(scalar); model.Set.Add(50); model.MapLongToString.Add(50, "C#"); var valA = "C#"; var valB = "protocol"; // var res = model.get_call().sync(L'c'); model.Interned_string.Set(valA); model.Interned_string.Set(valA); model.Interned_string.Set(valB); model.Interned_string.Set(valB); model.Interned_string.Set(valA); var derived = new Derived("C# instance"); model.Polymorphic.Set(derived); model.Enum.Value = MyEnum.net; extModel.Checker.Fire(); }