Rewriting GetContext procedure on mono.

@ekovalenko-softheme