Is it possible to output values to the console from within a class library?

For example

```
 Console App -> calls method in -> assembly > function

```

Is it possible to write a console.out method in the function of the assembly?

I know in web its possible to get the httpcontext, and do a response.write.