Community discussion forum

Namespaces and the Base Classes

This is a comment thread discussing Namespaces and the Base Classes
  • 10 years ago

    This thread is for discussions of Namespaces and the Base Classes.

  • 7 years ago
    After spend a whole afternoon testing code in this article( they didn't work), I found this in msdn:
    All methods of the Directory class are static and can therefore be called without having an instance of a directory. The DirectoryInfo class contains only instance methods. The static methods of the Directory class perform a security check on all methods. If you are going to reuse an object several times, consider using the corresponding instance method of DirectoryInfo instead, because the security check will not always be necessary.

    You need to replace all "File" with "FileInfo" and "Directory" with "DirectoryInfo" in this article!!!

  • 6 years ago

    I'm struggeling with the implementation of simple asynchroneous receive in C# :
    aQueue.enableNotification(eventObject, ref cursor, ref timeout)


    cursor and timeout are values (int) that can be retrieved from an enumeration
    but it won't compile ...


    Has anyone a codesnippet in C# that works ?


    Documentation of MMSS is always in C++


    Thanks in advance

  • 1 year ago

    Are you kidding? System.IO.File and System.IO.Directory are static classes. They can't be instantiated. Did any of the authors or editors bother running this code to see if it would work?

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback