Selegiline ( l-deprenyl ) is a selective monoamine oxidase type B inhibitor that has been shown to have neurotrophic and anti-apoptotic properties and to protect neurons in different experimental models of cerebral ischaemia .