Commit Graph
22 Commits
Author SHA1 Message Date
Carlos Alberto Cortez 69d631c7ae * ResourceWriter.cs: Implement 4.0 TypeNameConverter.
2010-07-05  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=159933
2010-07-06 03:56:45 +00:00
Carlos Alberto Cortez f6e6eb0387 2010-07-05 Carlos Alberto Cortez <[email protected]>
* ResourceWriter.cs: Implement 4.0 AddResource overloads taking a
	Stream, as well as implement the same support in our AddResource that
	takes an object too.


svn path=/trunk/mcs/; revision=159930
2010-07-06 01:10:45 +00:00
Miguel de Icaza dd82b6b192 More removal of old defines
svn path=/trunk/mcs/; revision=145612
2009-11-06 21:29:51 +00:00
Geoff Norton 571d214c11 2009-04-16 Geoff Norton <[email protected]>
* ResourceWriter.cs: The magic internal type here is required to match
        Microsofts for SL2 resource deserialization.

svn path=/trunk/mcs/; revision=131919
2009-04-16 17:50:38 +00:00
Gert Driesen a0400ec347 * ResourceWriter.cs: On 2.0 profile, do not mistakenly identify an
enum as a predefined type. Fixes bug #325223.
* ResourceWriterTest.cs: Enabled test for writing enum value on 2.0
profile.

svn path=/trunk/mcs/; revision=94016
2008-01-26 19:53:48 +00:00
Gert Driesen d5dc02f026 * ResourceWriterTest.cs: Added ctor tests. Added tests for AddResource
overloads. Added test for argument null checks. Added test for bug
#339074. Added test for invoking Generate () multiple times.
* ResourceWriter.cs: On 2.0 profile, use case-insensitive SortedList. 
Changed exception messages and params to match MS. Allow null values 
in AddResource overloads. In Dispose (bool), also generate resources
(header) if no resources were added. Fixes bug #339074. When Generate
is done, reset resources to null to prevent further editing.  This      
also avoids the need for a separate bool to indicate whether generate
was already invoked. Code formatting.

svn path=/trunk/mcs/; revision=89412
2007-11-10 19:10:06 +00:00
Miguel de Icaza e12b3020bc A few more changes from Jesse Jones, use SupressFinalize on
Dispose(true) cases


svn path=/trunk/mcs/; revision=82916
2007-07-28 16:10:50 +00:00
Atsushi Eno 41aa2767b5 2007-05-28 Atsushi Enomoto <[email protected]>
* ResourceWriter.cs : fix for runtime serialization type index.
	  Fixed bug #81759.

	* ResourceWriterTest.cs : new test, contains one for bug #81759.

	* corlib_test.dll.sources : added ResourceWriterTest.cs.


svn path=/trunk/mcs/; revision=78069
2007-05-28 16:02:23 +00:00
Atsushi Eno ebd1600c52 2007-05-28 Atsushi Enomoto <[email protected]>
* ResourceWriter.cs : temporarily disable 2.0 output until I get
	  bug #81759 fixed.


svn path=/trunk/mcs/; revision=78061
2007-05-28 14:34:26 +00:00
Atsushi Eno c98ee48759 2007-05-28 Atsushi Enomoto <[email protected]>
* IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
	  SatelliteContractVersionAttribute.cs ResourceManager.cs
	  IResourceReader.cs ResourceSet.cs ResourceWriter.cs
	  ResourceReader.cs UltimateResourceFallbackLocation.cs
	  MissingManifestResourceException.cs :
	  implemented 2.0 resource support (write, and remaining read bits)
	  and GetStream(). Cosmetic attributes fixes.

	* UnmanagedMemoryStream.cs : added Closed event for sys.Resources use.
	* IntPtrStream.cs : added internal get_BaseAddress(), for the same.

	* ResourceManagerTest.cs : added tests for GetStream() (including
	  2.0 resource format tests).


svn path=/trunk/mcs/; revision=78024
2007-05-28 03:35:21 +00:00
Geoff Norton fd7d7eaae5 2005-02-12 Geoff Norton <[email protected]>
* 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
2005-02-12 23:23:20 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Zoltan Varga 22c9df4393 2003-12-17 Zoltan Varga <[email protected]>
* ResourceWriter.cs (Stream): New internal property used by Ref.Emit.

svn path=/trunk/mcs/; revision=21278
2003-12-17 16:38:07 +00:00
Dick Porter f97ec68693 Missed one
svn path=/trunk/mcs/; revision=6750
2002-08-19 11:22:04 +00:00
Dick Porter 010cbb1bdf Optimisation suggested by Gonzalo, to avoid creating extra hashtable
provider and comparer objects.

svn path=/trunk/mcs/; revision=6749
2002-08-19 11:16:57 +00:00
Dick Porter 0a4551c1ae 2002-08-19 Dick Porter <[email protected]>
* 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
2002-08-19 10:56:32 +00:00
Duncan Mak a7867a2e45 Added more stuff to various Exceptions to make them serializable
svn path=/trunk/mcs/; revision=2211
2002-01-31 12:32:31 +00:00
Duncan Mak 1f356938bb Huge indentation fix. Don't worry, I tested so no typos were introduced. ;-)
svn path=/trunk/mcs/; revision=2077
2002-01-20 13:58:36 +00:00
Duncan Mak 28ff4b98fc 2002-1-17 Duncan Mak <duncan@[email protected]>
* *.cs: convert to Miguel's brace style.

svn path=/trunk/mcs/; revision=2032
2002-01-18 00:17:08 +00:00
Duncan Mak a22d5c780c 2002-01-17 Duncan Mak <[email protected]>
* ResourceWriter.cs: Added MonoTODO decorations.

    * SatelliteContractVersionAttribute.cs: added new attributes in 1.0 SDK.

    * NeutralResoucesLanguageAttribute.cs: added new attributes in 1.0 SDK

svn path=/trunk/mcs/; revision=2022
2002-01-17 18:46:09 +00:00
Paolo Molaro 6b79777d40 Tue Dec 18 13:18:32 CET 2001 Paolo Molaro <[email protected]>
* *.cs: fixed some of the compilation issues: missing
	using directives, typos.

svn path=/trunk/mcs/; revision=1618
2001-12-18 08:25:22 +00:00
Duncan Mak 4277468058 2001-12-11 Duncan Mak <[email protected]>
* Checked in to CVS.

svn path=/trunk/mcs/; revision=1554
2001-12-11 15:04:20 +00:00