StaticClasses

StaticClasses


Provides direct access to static class methods.


Remarks

VB6 does not support static class methods. To replicate the syntax of accessing static methods, a function of the same name as the class that is supposed to contain the static methods is defined in this class. This class has instancing of GlobalMultiUse. This means that just the name of these functions can be typed directly without having to instantiate the PublicFunctions class. By just typing in any of these function names, the underlying class which contains the static methods is returned, and those methods are then available for calling. This gives the illusion of static methods being called on a class.

When typing in one of these function names, it should be followed immediately by a period to allow access to the static methods of that class.

 ' Print the name of the current user
 Debug.Print Environment.UserName
 
This small example simply refers to the Environment function in this class, then directly calls a method on the returned object from the Environment function.

See Also

Project VBCorLib Overview

Public:

Types:

NameDescription
 SignRepresents the sign values of BigInteger values. 

Methods:

NameDescription
 ArrayListReturns a reference used to access static methods of the ArrayList class. 
 BigIntegerProvides a method to access the BigInteger static methods. 
 BitArrayReturns a reference used to access static methods of the BitArray class. 
 BitConverterReturns a reference used to access static methods of the BitConverter class. 
 BufferReturns a reference used to access static methods of the Buffer class. 
 CalendarReturns a reference used to access static methods of the Calendar class. 
 cArrayReturns an object used to access the cArray methods without instantiating the cArray class. 
 cDateTimeReturns a reference used to access static methods of the cDateTime class. 
 ComparerReturns an object used to access the Comparer static functions. 
 ConsoleReturns a reference used to access static methods of the Console class. 
 ConvertProvides methods for converting values. 
 CorReturns a object containing all of the parameterized constructors available within the VBCorLib library. 
 CryptoConfigReturns a reference used to access the CryptoConfig static methods. 
 cStringReturns an object used to access the cString methods without instantiating the cString class. 
 CultureInfoReturns a reference used to access static methods of the CultureInfo class. 
 DateTimeFormatInfoReturns a reference used to access static methods of the DateTimeFormatInfo class. 
 DESReturns a reference used to access the DES static methods. 
 DirectoryReturns a reference used to access static methods of the Directory class. 
 DriveInfoProvides methods for retrieve information about all drives on the local machine. 
 EncodingReturns a reference used to access static methods of the Encoding class. 
 EnvironmentReturns a reference used to access the methods of the Environment functions. 
 FileReturns a reference used to access static methods of the File class. 
 GregorianCalendarReturns a reference used to access static methods of the GregorianCalendar class. 
 GuidProvides static methods for creating new Guid objects. 
 HebrewCalendarReturns a reference used to access static methods of the HebrewCalendar class. 
 HijriCalendarReturns a reference used to access static methods of the HijriCalendar class. 
 HMACReturns a reference used to access the HMAC static methods. 
 JulianCalendarReturns a reference used to access static methods of the JulianCalendar class. 
 KoreanCalendarReturns a reference used to access static methods of the KoreanCalendar class. 
 MACTripleDESReturns a reference used to access the MACTripleDES static methods. 
 NumberFormatInfoReturns a reference used to access static methods of the NumberFormatInfo class. 
 ObjectProvides default methods for classes that implement the IObject interface. 
 PathReturns a reference used to access static methods of the Path class. 
 RC2Returns a reference used to access the RC2 static methods. 
 RegistryReturns a reference used to access static methods of the Registry class. 
 RegistryKeyReturns a reference used to access static methods of the RegistryKey class. 
 ResourceManagerProvides methods for creating custom resoure managers. 
 RijndaelReturns a reference used to access the Rijndael static methods. 
 RSAReturns a reference used to access the RSA static methods. 
 SecurityElementReturns a reference used to access the SecurityElement static methods. 
 SHA1Returns a reference used to access the SHA1 static methods. 
 SHA256Returns a reference used to access the SHA256 static methods. 
 SHA384Returns a reference used to access the SHA384 static methods. 
 SHA512Returns a reference used to access the SHA512 static methods. 
 StopWatchReturns a reference used to access the StopWatch static methods. 
 StreamReturns a reference used to access static methods of the Stream class. 
 TextReaderReturns a reference used to access static methods of the TextReader class. 
 TimeSpanReturns a reference used to access static methods of the TimeSpan class. 
 TimeZoneReturns a reference used to access static methods of the TimeZone class. 
 TripleDESReturns a reference used to access the TripleDES static methods. 
 VersionReturns a reference used to access static methods of the Version class.