The beginning work of a .Net compatible EndGate code.