示例#1
0
文件: Events.cs 项目: sav/efl
        public static void event_with_object_payload()
        {
            test.ITesting obj          = new test.Testing();
            test.ITesting received_obj = null;

            obj.EvtWithObjEvt += (object sender, EvtWithObjEvt_Args e) => {
                received_obj = e.arg;
            };

            test.ITesting sent_obj = new test.Testing();

            obj.EmitEventWithObj(sent_obj);

            Test.AssertEquals(sent_obj, received_obj);
        }