Tip: use directive

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Tip: use directive

Postby Charles » Sat Feb 09, 2008 12:39 pm

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, for example.
Posts: 2515
Location: Los Angeles, CA

Return to Discussion

Who is online

Users browsing this forum: No registered users and 4 guests