Tags » C-2

Interface - 2

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DS_373
{
    interface IMyInterface1 //interface declaration can have access modifier
    {
        void Print(string s); //Interface methods can not have acccess modifier.
63 more words

C#

Interfaces - 1

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DS_373
{
    interface IMyInterface1 //interface declaration can have access modifier
    {
        void Print(string s); //Interface methods can not have acccess modifier.
35 more words

C#

Publisher Subscriber Event Firing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication10
{

    class Sayici
    {
        public event EventHandler Counted12;

        public Sayici() { }

        public void Say()
        {
            for (int i = 0; i < 100; i++)
            {
                if (i % 12 == 0)
                {
                    if (Counted12 != null)
                    {
                        Counted12(this, null);
                        Console.WriteLine(i);
                    }
                }
            }
        }
    }


    class Abone
    {
        public int counter12;

        public Abone(Sayici s)
        {
            s.Counted12 += Artir12Sayac;
        }

        public void Artir12Sayac(Object o, EventArgs e)
        {
            counter12++;
            Console.WriteLine("12 ile karşılaşıldı ve artırıldı");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Sayici s = new Sayici();
            Abone a = new Abone(s);
            s.Say();
            Console.WriteLine("Toplam karşılaşılan 12 ile bölünebilen sayısı: {0}", a.counter12);
            Console.ReadKey();

        }
    }
}

C#

Hard Drivin'

Hot Wheels sold separately

Lucy, I’m hooooooooooooooooome! 797 more words

Sega

Encrypting/Decrypting For Confidentiality

Depending on how they’re designed, there are up to 5 services that a cryptographic system can provide to its users:

In my last post, 497 more words

C++

Upcoming Dates of Importance

May 18th Journals #1-3 Due

May 23-25  – In-class synthesis.  Remember it is your responsibility to bring in a piece of writing to synthesize with your novel.

May 29 – Ideagrams are due!

A

Journal #3

Evaluate your protagonist’s journey throughout your novel.

A