/// <summary> /// Loads a stringID cache from a string_ids.dat file. /// </summary> /// <param name="stream">The stream to read from.</param> /// <param name="resolver">The stringID resolver to use.</param> public StringIdCache(Stream stream, StringIdResolverBase resolver) { Resolver = resolver; if (stream.Length != 0) Load(stream); else _strings = new List<string>(); }
/// <summary> /// Loads a stringID cache from a string_ids.dat file. /// </summary> /// <param name="stream">The stream to read from.</param> /// <param name="resolver">The stringID resolver to use.</param> public StringIdCache(Stream stream, StringIdResolverBase resolver) { Resolver = resolver; if (stream.Length != 0) { Load(stream); } else { _strings = new List <string>(); } }
/// <summary> /// Loads a stringID cache from a string_ids.dat file. /// </summary> /// <param name="stream">The stream to read from.</param> /// <param name="resolver">The stringID resolver to use.</param> public StringIdCache(Stream stream, StringIdResolverBase resolver) { Resolver = resolver; Strings = _strings.AsReadOnly(); Load(stream); }
/// <summary> /// Loads a stringID cache from a string_ids.dat file. /// </summary> /// <param name="stream">The stream to read from.</param> /// <param name="resolver">The stringID resolver to use.</param> public StringIdCache(Stream stream, StringIdResolverBase resolver) { Resolver = resolver; Load(stream); }
/// <summary> /// Loads a stringID cache from a string_ids.dat file. /// </summary> /// <param name="stream">The stream to read from.</param> /// <param name="resolver">The stringID resolver to use.</param> public StringIdCache(Stream stream, StringIdResolverBase resolver) { Resolver = resolver; Strings = _strings.AsReadOnly(); Load(stream); }