I just laughed at me. A brother from the blog garden sent a love letter written in 2-14, which programmers can understand.
Address: http://www.cnblogs.com/walleyekneel/archive/2012/02/14/2351237.html
Really talented.
I wish you a happy Valentine's Day. Don't work overtime at night. Come home and accompany your daughter-in-law.
In fact, I found out today that it is too late for Amitabha. You cannot blame me.
I always thought that the main difference between classes and interfaces is that classes can be inherited, but the structure is not good. However, if there is no error in analyzing this sentence. Generally, classes are inherited, while interfaces are implemented. Oh, oh .. Text games.
Okay, I admit defeat. I just wrote a piece of code and pasted it to prove my point of view.
Struct MyStruct: IEnumerable
{
Public IEnumerator GetEnumerator ()
{
Int [] ints = new int [] {1, 2, 3, 4 };
For (int I = 0; I <ints. Length; I ++)
Yield return I;
}
}
And then call it in main.
Static void Main (string [] args)
{
MyStruct myStruct = new MyStruct ();
Foreach (int I in myStruct)
Console. WriteLine (I );
}
The result is:
Look, it's not a lie !...
Valentine's Day can be a lie.
Happy Valentine's day again.