Page 1 of 1

Tip: use directive

PostPosted: Sat Feb 09, 2008 12:39 pm
by Charles
There are five implicit "use" directives at the top of a Cobra program:
use System
use System.Collections.Generic
use System.IO
use System.Text
use Cobra.Lang

This means that you have immediate access to Object, String, List<of T>, TextWriter, StringBuilder and CobraCore, among others. If you need access to something more, you can put your own "use" at the top of your file like so:
use System.Net

# ...
You can see this in http://cobra-language.com/samples/Download/, for example.