/// <summary> /// Initializes a new instance of the <see cref="T:Linguist.Resources.Binary.BinaryResourceSet" /> class /// using the default <see cref="T:Linguist.Resources.Binary.BinaryResourceExtractor" /> to read resources /// from the specified stream. /// </summary> /// <param name="stream">The <see cref="T:System.IO.Stream" /> of resources to be read. The stream should refer to an existing resource file.</param> public BinaryResourceSet ( Stream stream ) { Reader = new BinaryResourceExtractor ( stream ); Table = new Hashtable ( ); ReadResources ( ); }
private int position; // Cached for case-insensitive table public Enumerator(BinaryResourceExtractor reader) { this.reader = reader; currentName = EnumNotStarted; position = -2; }
/// <summary> /// Initializes a new instance of a <see cref="T:Linguist.Resources.Binary.BinaryResourceSet" /> class /// using the default <see cref="T:Linguist.Resources.Binary.BinaryResourceExtractor" /> that opens /// and reads resources from the specified file. /// </summary> /// <param name="fileName">The name of the file to read resources from.</param> public BinaryResourceSet ( string fileName ) { Reader = new BinaryResourceExtractor ( fileName ); Table = new Hashtable ( ); ReadResources ( ); }