Interesting Code

Umm yeah.

 

    class A
    {
        public class B : A
        {
        }
    }

    //slightly weird
    class C : A.B
    {
        public void Foo(C.B b)
        {
        }
    }

    //Love the edge conditions

    class D : A
    {
        public void Foo(D.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B b)
        {
        }
    }

This entry was posted in Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

7 Responses to Interesting Code

  1. Darius Damalakas says:

    Nice! 😀 😀

  2. Joe Balfantz says:

    Opens possibilities of code poetry for the REALLY bored .NET coders:

    http://internetducttape.com/2007/02/14/show-your-geek-love-with-code-poetry-in-perl/

  3. Kostya says:

    class A
    {
    public class B : A
    {
    }
    }

    class C : A
    {
    public void Foo(A.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B b)
    {
    }
    }

  4. LOL! Great find! 😀

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>