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.
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.
This Gist is my experimental code of explanation for logic circuit with C#.
I think, using Reactive Extension, we can write more smart code for circuit(not only logical one).
This class means logic wire. Logic gate elements are also provided.
For IObservalble<bool> instances with default value, factory method "CreateWithDefault" is exist.
public void Parse(IEnumerable<string> data) | |
{ | |
DateTime start = DateTime.Now; | |
var stream = data.Where(x => !string.IsNullOrEmpty(x)); | |
if (stream.First().StartsWith("surf", false, null)) | |
{ | |
throw new FileFormatException("SURF Header"); | |
} |
public void Parse(IEnumerable<string> data) | |
{ | |
DateTime start = DateTime.Now; | |
var stream = data.Where(x => !string.IsNullOrEmpty(x)); | |
if (stream.First().StartsWith("surf", false, null)) | |
{ | |
throw new FileFormatException("SURF Header"); | |
} | |