Could you show me the code(s) of one or more simple chess program(s) written in C#? I am a novice in C#.
I am looking for the code(s) of one or more chess program(s) written in C#.
Preferably, the code(s) should be short, clean, straightforward, very simple, and use only basic things (try to avoid complicated system namespace / library). It does not matter if the program is not very strong.
If you could also provide some explanations of the different parts of the code it would be even better.  

The part of the code which interests me the most is the part which stores all the many millions positions at different depths.
Can this be done in a multidimensional array?
I was thinking that maybe the first two dimensions of the array could represent the two-dimensional boards, the 3rd dimension of the array could represent all the possible positions at a depth of 1 ply, the 4th dimension of the array could represent all the positions at a depth of 2 plies, the 5th dimension of the array could represent all the positions at a depth of 3 plies, etc... But perhaps that would be a little too messy.
Although it is written in C, you might want to take a look at Tom Kerrigan's Simple Chess Program (TSCP) which is created for this very purpose—to allow beginners to see what a simple chess engine is made of.