This Gist is experimental logic circuit description with C#.
I think, using Reactive Extension(Rx), we can write electrical circuit easily.
Previous Gist Code
This class means logic wire. Logic gates are defined as operator override. "Vcc" and "GND" are defined. Factory method "CreateWithDefault" also defined.
Half Adder and Full Adder are simple combinational logic circuits.
If we define component once, we can use it everywhere.
Circuit description sample. port A, B are changed by timer, and circuit results are changed immediately.