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
* ResourceManager.cs: Add a negative cache for culture->resource set mappings
which caches lookup failures.
* ResourceSet.cs (GetObjectInternal): Search the hash table in the ignoreCase
case too.
svn path=/trunk/mcs/; revision=106787
* ResourceSet.cs: Pass the ignoreCase argument, needed to
implement ResourceManager.IgnoreCase.
Silverlight 2.0 applications store "page.xaml" as the key in the
resource keys, but request Page.xaml ones.
* ResourceManager.cs: Avoid exception throwing and catching.
* RutimeResourceSet.cs: Add a constructor that is required to
deserialize Silverlight 2.0 applications when deserializing the
resources that contains the XAML files in assemblies.
We do not take advantage of this new constructor that uses an
IntPtrStream, instead we stick to the Stream API.
svn path=/trunk/mcs/; revision=102841
* ResourceSet.cs: Avoid duplicate argument checks. On 2.0 profile,
throw ObjectDisposedException when ResourceSet is disposed.
* RuntimeResourceSet.cs: On 2.0 profile, throw ObjectDisposedException
when ResourceSet is disposed.
* ResourceManagerTest.cs: Enabled and added ResourceSetType asserts.
Added test for disposed ResourceSet. Avoid using ExpectedException.
* ResourceSetTest.cs: Improved tests for ctor argument checks. Avoid
using ExpectedException.
svn path=/trunk/mcs/; revision=98387
* ResourceManager.cs: Use RuntimeResourceSet, an internal type, just
like MS does (and tell us indirectly with a Type property).
* ResourceSet.cs: Fix a few problems found with new unit tests. Also
fix some exception parameters.
* RuntimeResourceSet.cs: New. Internal type used by ResourceManager.
ResouceSet cannot be used, as is, because it does not clone objects,
when possible, leading to problems when those objects are disposed.
svn path=/trunk/mcs/; revision=97297
protected ctor, instead move it to the public ctors. Fixes some not
working nunit tests. Also, return a closed ResourceSet instead of
creating a new one. Fixes one more test. If only BaseNameField is
provided, try to create a resource set from the BaseNameField. One
more test that passes now.
* ResourceSet.cs: Remove isDisposed. Not needed anymore.
2006-12-30 Alexander Olk <[email protected]>
svn path=/trunk/mcs/; revision=70271
2006-10-29 Alexander Olk <[email protected]>
* ComponentResourceManager.cs: Don't close the resource set in
ApplyResources, it is possible to call ApplyResources multiple
times. Closing the resource set means that it gets disposed.
Fixes bug #79182.
In corlib/System.Resources:
2006-10-29 Alexander Olk <[email protected]>
* ResourceSet.cs, ResourceManager.cs: Calling ResourceSet.Close()
disposes a resource set. A closed resource set will now be
removed from ResourceSets. Fixes bug #79182.
svn path=/trunk/mcs/; revision=67076
* 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
* ResourceSet.cs: Implemented GetObject (string, bool) and GetString
(string, bool). ResourceSet has no more MonoTODOs! Also added in the
Serializable attribute.
svn path=/trunk/mcs/; revision=2029