pycdc ported to C#