zoukankan      html  css  js  c++  java
  • 一个很精致的HelloWorld,你看得懂么?

    MDSN的Blog上看到一篇很精致的文章--“HelloWorld",看完只能说是精致,而不能说是精采。你同意么?

    Hello World

    private static void Main(string[] args)
    {
        Person father = new Person();
        Person mother = new Person();
        Person girl = new Person();
     
        Person boy = mother.Emit(mother.Union(father),
            new DateTime(2007, 4, 21));
        girl.PromoteTo(Rank.BigSister);
     
        mother.Condition = Conditions.Well | Conditions.Tired;
        father.Condition = Conditions.Well | Conditions.Tired;
        boy.Condition = Conditions.Well;
        girl.Condition = Conditions.Happy;
     
        Console.WriteLine(boy.ToString());
    }
    邀月注:本文版权由邀月和博客园共同所有,转载请注明出处。
    助人等于自助!  3w@live.cn
  • 相关阅读:
    centos 修改语言、时区
    去除 ufeff
    Docker介绍及使用
    消息队列
    数据结构与算法
    Haystack
    Python面向对象之魔术方法
    关于Redis处理高并发
    Redis
    RESTful规范
  • 原文地址:https://www.cnblogs.com/downmoon/p/1019922.html
Copyright © 2011-2022 走看看