4.0 updates.
* ResourceManager.cs: Mark ResourceSets as obsolete.
* ResourceReader.cs: New public Dispose method.
svn path=/trunk/mcs/; revision=160005
2009-10-18 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Remove System.IO.IntPtrStream since it can
be replaced by (public in 2.0+) UnmanagedMemoryStream
* net_2_1_raw_corlib.dll.sources: Remove System.IO.IntPtrStream
since it can be replaced by UnmanagedMemoryStream
In System.Resources:
2009-10-18 Sebastien Pouliot <[email protected]>
* ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use
UnmanagedMemoryStream (instead of IntPtrStream)
svn path=/trunk/mcs/; revision=144322
* ResourceReader.cs: fix reading/writing beyond the end of the
current resource when the resource is larger than 1024 bytes.
svn path=/trunk/mcs/; revision=110159
2008-06-28 Rodrigo Kumpera <[email protected]>
* ResourceReader.cs (LoadResourceValues): Kill ununsed local.
* ResourceReader.cs (CreateResourceInfo): Don't return a big
struct on stack, pass it as a reference argument.
svn path=/trunk/mcs/; revision=106825
2008-06-27 Rodrigo Kumpera <[email protected]>
* ResourceReader.cs: Avoid an extra array copy for the resource arrays.
svn path=/trunk/mcs/; revision=106808
* ResourceReader.cs: use structs instead of classes for the
internal ResourceInfo and ResourceCacheItem data items. Patch from
Andreas Nahr <[email protected]>, thanks!
svn path=/trunk/mcs/; revision=104334
* ResourceReader.cs: reimplement the way resources are read when
enumerator is used. The resource indexes and names are read in
ReadHeaders when ResourceReader is created and the resource values
are read and cached when the enumerator is created. This removed a
lot of unnecessary locking and made the whole process more
efficient and faster (a test application would acquire the locks
40000 times durng a 1.7s run, right now it acquires the lock 1
time).
svn path=/trunk/mcs/; revision=104224
* ResourceReader.cs : implemented GetResourceData(). Resources with
unresolvable types could still be parsed, so hold type names
instead of types.
* ResourceReaderTest.cs : added tests for GetResourceData()
svn path=/trunk/mcs/; revision=83761
* ResourceReader.cs (ResourceValue): Put the null resource check
before the resource version 2 check, this fixes bug #81757
svn path=/trunk/mcs/; revision=82066
Patch provided by Red Forks. Fixes bug #79976.
* ResourceReaderTest.cs: Added test for reading byte array.
No longer derive from Assertion class.
svn path=/trunk/mcs/; revision=70246
* ResourceReader.cs, ResourceSet.cs: Added a LinkDemand for
SerializationFormatter when using a Stream constructor (other ctors
have different security - e.g. FileIOPermission for opening a file).
svn path=/trunk/mcs/; revision=42422
* ResourceReader.cs: If a resource type index is -1 return null
instead of throwing an exception
* ResourceWriter.cs: If an object is null; encode it with type index
-1 instead of throwing an exception.
svn path=/trunk/mcs/; revision=40569
* MonoType.cs: Add a space before the Assembly name in
AssemblyQualifiedName (needed for resource files so the MS runtime
can load types)
2002-08-19 Dick Porter <[email protected]>
* BinaryWriter.cs: The length of a string is counted in bytes, not
chars
2002-08-19 Dick Porter <[email protected]>
* ResourceWriter.cs: Implemented all methods
* ResourceReader.cs: Cope with our ResourceSet class name, as well
as theirs
svn path=/trunk/mcs/; revision=6748
* ResourceReader.cs: Finished basic implementation. Some
optimisation in conjunction with ResourceSet still possible though
svn path=/trunk/mcs/; revision=6720
* ResourceReader.cs: Finsished reading resource files with just strings
in them. Need to figure out other types, and also resources with
multiple types in the same file.
svn path=/trunk/mcs/; revision=2162
* ResourceReader.cs: Implemented constructors. Started on the
GetEnumerator() method. Not done yet, but comitting for
'disaster recovery' purposes.
svn path=/trunk/mcs/; revision=2130