The Hunt for a Grammar

Team Fly 

Page 6

 Summary: Creates a file in the specified path. Parameters: path: The path and name of the file to create. Return Values: A System.IO.FileStream that provides read/write access to the specified file. 

Many VB programmers aren't used to having to interpret this kind of information—VB used to be a simpler language. Now, with VB.NET, it's a new ball game.

You are certain to find yourself often looking at something like the description in Figure 1.1, and wondering how to change this into source code.

The Hunt for a Grammar

We want to think that there is an underlying set of rules, a grammar, that organizes .NET source code. We want to learn the rules so we can instantiate objects, and invoke their methods, without having to continually make educated guesses, then see error messages, then try again by adjusting the syntax, punctuation, or phrasing. We want to assume that the grammar of .NET is consistent—so we don't have to struggle time and again with constructions that follow no particular pattern.

image

FIGURE 1.1 Often this is all the information you get about how to use a .NET class. Translating this into useable source code is up to you.

Team Fly 


Visual Basic  .NET Power Tools
Visual Basic .NET Power Tools
ISBN: 0782142427
EAN: 2147483647
Year: 2003
Pages: 178

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net