To continue to use the syntax in managed code, move it to a procedural program and call it from within a class method.