---
title: "一个很精致的HelloWorld，你看得懂么？"
author: "netxdiy"
date: "2007-04-22T21:54:00Z"
tags: []
slug: "helloworld"
draft: false
lastmod: "2012-09-27T11:33:27Z"
id: 1687133
url: "https://netxdiy.iteye.com/blog/1687133"
---

MDSN的Blog上看到一篇很精致的文章--“[HelloWorld](http://blogs.msdn.com/ploeh/archive/2007/04/22/HelloWorld.aspx) ",看完只能说是精致，而不能说是精采。你同意么？

## 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());
```

```
}
```