Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Configuration.CheckPageLoad(HttpContext.Current.Request.Url);

            var doberman = new Doberman();
            var result = doberman.Run(doberman.Fetch((DobermanConfiguration)Configuration));

            DobermanResponse.Output(Context, result);
        }
        public void Index()
        {
            Configuration.CheckPageLoad(Request.Url);

            var doberman = new Doberman();
            var result = doberman.Run(doberman.Fetch((DobermanConfiguration)Configuration));

            DobermanResponse.Output(System.Web.HttpContext.Current, result);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            int foo = 3;
            var x   = 5;
            var str =
                @"name:dante
age:26
website:http";

            Dog dog = new Doberman();

            dog.name = "fido";


            Type xxx = 1.GetType();

            Console.WriteLine(xxx);
            //"System.Int32"

            Type type1 = dog.GetType();

            Console.WriteLine(type1);

            Type type2 = typeof(Dog);

            Console.WriteLine(type2);
            //"sl_cs.Program.Dog"

            Type type3 = typeof(Dog).GetType();

            Console.WriteLine(type3);
            //"sl_cs.Program.Dog"

            Type type4 = type1.GetType();

            Console.WriteLine(type4);
            //"sl_cs.Program.Dog"

            var typeType = typeof(Type);

            var test1 = type1 == type2;
            var test2 = type2 == type3;
            var test3 = type3 == type1;


            var dante = new Person();


            var lassie = new Dog();

            SetNameOfThing(dante, "Dnate");
            SetNameOfThing(lassie, "Lassie");


            DmlPopulate(str, dante);
        }
Beispiel #4
0
 public void Enter(Doberman doberman)
 {
     this.doberman = doberman;
 }
Beispiel #5
0
 void IDobermanState.Enter(Doberman doberman)
 {
     this.doberman = doberman;
 }