VB2008 Coding Suggestion 1
Posted by Admin L in .NET Programming on 18-08-2011. Tags: .NET Programming Experience
Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb2008-coding-suggestion-1
To reprint this article, please indicate the source, thank you.
_____________________________________
Suggestion: Try to use .NET classes, and avoid using the classes that under Microsoft.VisualBasic namespace and its sub namespaces.
Reason: Though the classes under Microsoft.VisualBasic namespace are .NET classes also, but they are produced for compatible with VB6-, in order to maximize .NET-based platform and adapt to future development considerations, should be avoided.
Example: Replace Len(str) with str.Length.