Hi,
[] indicates an attribute. The DllImport attribute is used when
calling an unmanaged DLL function from managed code (see also
"P/Invoke"). Here's an MSDN link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fSystemRuntimeInteropServicesDllImportAttributeClassTopic.asp
~ indicates a class finalizer (similar to a C++ destructor, or
Class_Terminate if you're familiar with VB). Here's an MSDN link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemobjectclassfinalizetopic.asp
John
> I have two intro books that all of sudden jump into programs with the
> following syntax:
[quoted text clipped - 10 lines]
>
> Can sombody tell me what is [] and ~ telling the compiler?