Constructors

Constructors


Functions used to create fully inititalized objects.

Remarks

This class is defined as Global-Multiuse. All of the functions can be called directly without needing to create a Constructors object.

The Cor static object can be used to easily find and select the desired object to create. By using the Cor.NewXxx method, the IntelliSense will show all of the available constructors, making object creation easier.

Example

 ' This calls the constructor function directly.
 Set fs = NewFileStream("data.txt", FileMode.OpenOrCreate)

 ' This calls the constructor through the Cor.NewXxx method.
 Set fs = Cor.NewFileStream("data.txt", FileMode.OpenOrCreate)
 
Both methods perform the same task, however, using the Cor.Newxxx method will provide IntelliSense showing all of the available constructors.

See Also

Project VBCorLib Overview

Public:

Methods:

NameDescription
 CreateEnumerator Creates a For..Each compatible wrapper around an IEnumerator object.  
 NewApplicationException Creates a new ApplicationException object.  
 NewArgumentException Creates a new ArgumentException object.  
 NewArgumentNullException Creates a new ArgumentNullException object.  
 NewArgumentOutOfRangeException Creates a new ArgumentOutOfRangeException object.  
 NewArray Creates an array of values.  
 NewArrayList Creates a new ArrayList object with the specified settings.  
 NewArrayTypeMismatchException Creates a new ArrayTypeMismatchException object.  
 NewBinaryReader Returns a new BinaryReader that can read from the specified stream usind the specified Encoding.  
 NewBinaryWriter Returns a new BinaryWriter used to write to a Stream object.  
 NewBitArray Creates a new BitArray object.  
 NewBooleans Returns an array of Boolean values generated from the values passed in.  
 NewBytes Returns an array of Bytes generated from the values passed in.  
 NewcDateTime Creates a new cDateTime object set to the specified date.  
 NewCharEnumerator Creates an enumerator used to iterate over the Unicode characters of a String.  
 NewConsoleKeyInfo Returns a new ConsoleKeyInfo object that represents the state of a key press.  
 NewCryptoAPIHash Creates a new CryptoAPIHash object.  
 NewCryptographicException Creates a new CryptographicException object.  
 NewCryptoStream Creates a new CryptoStream object used to read or write transformed data to or from an underlying stream.  
 NewCspKeyContainerInfo Creates a new CspKeyContainerInfo object.  
 NewCspParameters Creates a new CspParameters object.  
 NewCultureInfo Creates a new CultureInfo object for the specified culture.  
 NewCurrencys Returns an array of Currency values generated from the values passed in.  
 NewDate Allows for quickly creating a cDateTime object from a VB Date value.  
 NewDates Returns an array of Date values generated from the values passed in.  
 NewDayLightTime Creates a new DayLightTime object with the specified start and end times for daylight savings.  
 NewDictionaryEntry Creates a new DictionaryEntry object initialized with key and value.  
 NewDirectoryInfo Creates a new DirectoryInfo object that describes the specified path.  
 NewDirectoryNotFoundException Creates a new DirectoryNotFoundException object with the specified message and optional exception.  
 NewDoubles Returns an array of Doubles generated from the values passed in.  
 NewDriveInfo Creates a new DriveInfo object used to inspect a drives information.  
 NewDSACryptoServiceProvider Creates a new DSACryptoServiceProvider object.  
 NewEndOfStreamException Returns a new EndOfStreamException with the specified message and optional exception.  
 NewException Creates a new Exception object.  
 NewExceptionBase Creates a new base utility class that can be contained within an exception class.  
 NewExternalException Creates a new ExternalException object.  
 NewFileInfo Creates a new FileInfo object used to describe and manage a file.  
 NewFileNotFoundException Creates a new FileNotFoundException with the specified Message, FileName, and InnerException.  
 NewFileStream Returns a new FileStream to access an underyling file.  
 NewFileStreamFromHandle Returns a new FileStream to access a file other than that on disk, such as pipes.  
 NewFormatException Creates a new FormatException object.  
 NewFromBase64Transform Creates a new FromBase64Transform object used to convert base64 characters to plain text.  
 NewGregorianCalendar Creates a new instance of the Gregorian calendar class.  
 NewHashAlgorithmBase Creates a base classed used by hash algorithms.  
 NewHashtable Creates a new Hashtable object with specific settings.  
 NewHMACBase Creates a base class that can be used as a base implementation of an HMAC class.  
 NewHMACMD5 Creates a new HMACMD5 object.  
 NewHMACRIPEMD160 Creates a new HMACRIPEMD160 object.  
 NewHMACSHA1 Creates a new HMACSHA1 object.  
 NewHMACSHA256 Creates a new HMACSHA256 object.  
 NewHMACSHA384 Creates a new HMACSHA384 object.  
 NewHMACSHA512 Creates a new HMACSHA512 object.  
 NewIndexOutOfRangeException Creates a new IndexOutOfRangeException object.  
 NewINIFile Returns an object used to manipulate an INI file.  
 NewIntegers Returns an array of Integers generated from the values passed in.  
 NewInvalidCastException Creates a new InvalidCaseException object.  
 NewInvalidOperationException Creates a new InvalidOperationException object.  
 NewIOException Creates a new IOException object with the specified Message, HResult, and InnerException.  
 NewKeySizes Creates a new KeySizes object with the Min, Max and Skip sizes defined.  
 NewLongs Returns an array of Longs generated from the values passed in.  
 NewMACTripleDES Creates a new MACTripleDES object.  
 NewMemoryMappedFile Creates a memory-mapped view of a file.  
 NewMemoryStream Returns a new memoryStream object which uses a supplied byte array.  
 NewNotSupportedException Creates a new NotSupportedException object.  
 NewObjectDisposedException Returns a new ObjectDisposedException  
 NewOperatingSystem Returns a new OperatingSystem object with the specified Platform and Version.  
 NewOverflowException Returns a new OverflowException with the specified message and exception.  
 NewPathTooLongException Returns a new PathTooLongException object.  
 NewPlatformNotSupportedException Returns a new PlatformNotSupportedException with the specified Message and InnerException.  
 NewQueue Creates a new Queue initialized with the elements in the collection.  
 NewRandom Creates a new Random object initialized with the specified seed.  
 NewRankException Creates a new RankException object.  
 NewResourceKey Creates a new object used to uniquely identify a resource.  
 NewResourceManager Loads all resources from a source for all cultures in the source.  
 NewResourceReader Enumerates through the resources in a .RES file.  
 NewResourceSet Creates a new set of resources for a specific culture.  
 NewResourceWriter Provides a method to create a new .RES file.  
 NewResPictureGroup Creates a picture group object used to contain information about resources that are grouped together.  
 NewRfc2898DeriveBytes Creates a new Rfc2898DeriveBytes object.  
 NewRNGCryptoServiceProvider Creates a new random number generator that uses a crypto service provider to generate random numbers.  
 NewRSACryptoServiceProvider Creates a new RSACryptoServiceProvider object.  
 NewSecurityElement Creates a new SecurityElement object.  
 NewSerializationException Creates a new SerializationException object.  
 NewSingles Returns an array of Singles generated from the values passed in.  
 NewSortedList Creates a new SortedList object with specific initialization options.  
 NewStack Creates a new Stack object initialized with data in col.  
 NewStreamReader Creates a new StreamReader from either a FileName or an existing stream to read from.  
 NewStreamWriter Creates a new StreamWriter with either a filename or other stream as a source to write to in the specified Encoding.  
 NewStringBuilder Returns a new StringBuilder with user specified settings and starting string.  
 NewStringReader Returns a new StringReader object.  
 NewStrings Returns an array of Strings generated from the values passed in.  
 NewStringWriter Returns a new StringWriter object.  
 NewSystemException Creates a new SystemException object.  
 NewTicker Creates a new Ticker.  
 NewTime Returns a new TimeSpan representing the time portion of the date.  
 NewTimeSpan Creates a new TimeSpan object set to the specified amount of time.  
 NewUnauthorizedAccessException Creates a new UnauthorizedAccessException object.  
 NewUnicodeEncoding Returns a new UnicodeEncoding object with the specified settings.  
 NewUTF7Encoding Returns a new UTF7Encoding object.  
 NewUTF8Encoding Returns a new UTF8Encoding object.  
 NewVariants Returns a Variant array containing the values passed in.  
 NewVersion Creates a new Version object with specified version information.  
 NewWeakReference Creates a new WeakReference object.  
 NewWinResourceReader Creates a new WinResourceReader reader object.  
 NewXmlSyntaxException Creates a new XmlSyntaxException object.