Beispiel #1
0
 protected override void Store()
 {
     var item = new CsDelegate();
     item.Bang += OnBang;
     item.UntypedDelegate = new EventHandler(OnBang);
     Store(item);
 }
Beispiel #2
0
 override protected void Store()
 {
     CsDelegate item = new CsDelegate();
     item.Bang += new EventHandler(OnBang);
     item.UntypedDelegate = new EventHandler(OnBang);
     Store(item);
 }
Beispiel #3
0
        protected override void Store()
        {
            var item = new CsDelegate();

            item.Bang           += OnBang;
            item.UntypedDelegate = new EventHandler(OnBang);
            Store(item);
        }
Beispiel #4
0
        public void TestFieldsAreNotStored()
        {
            CsDelegate instance = (CsDelegate)RetrieveOnlyInstance(GetType());

            // delegate fields are simply not stored
            Assert.AreEqual(null, instance.Bang);
            Assert.AreEqual(null, instance.UntypedDelegate);
        }
Beispiel #5
0
        override protected void Store()
        {
            CsDelegate item = new CsDelegate();

            item.Bang           += new EventHandler(OnBang);
            item.UntypedDelegate = new EventHandler(OnBang);
            Store(item);
        }