InterruptPort (on new TinyCLR OS how to)?

old code was

InterruptPort _pinInterrupt = new InterruptPort(myPin, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeBoth);

could someone help me about this how to rewrite it for TinyCLR OS from .NET Microframework 4.x

Please read here. General Purpose Input Output and scroll down to Digital Input Events


Great. The new docs are near complete. We want everyone to be directed there.