PC Review


Reply
Thread Tools Rate Thread

Assembly Seializable

 
 
shail
Guest
Posts: n/a
 
      22nd Aug 2003
How to mark assembly serializable?
Thank You.

 
Reply With Quote
 
 
 
 
Michael Lang
Guest
Posts: n/a
 
      22nd Aug 2003
How would you serialize an assembly? An assembly defines a set of types,
not a runtime grouping of those types.

Do you mean how do you mark a class as serializeable? If you want an
application "instance" serialized as a whole you do that by marking all the
classes as serializeable. Then serialize the main class instance (object)
that holds a reference to all other objects (such as an "Application"
class).

[Serializable]public class Application{...}
[Serializable]public class Document{...}
etc...

Now you need to ensure all the classes serialize properly... Basic,
Selective, or Custom. See the following link:
http://msdn.microsoft.com/library/de...ialization.asp

Let me know if this helps.

--
Michael Lang, MCSD

"shail" <(E-Mail Removed)> wrote in message
news:0d5c01c368ba$2f7fdb60$(E-Mail Removed)...
> How to mark assembly serializable?
> Thank You.
>



 
Reply With Quote
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      3rd Sep 2003
shail wrote:
> How to mark assembly serializable?
> Thank You.


All assemblies (except dynamic assemblies) are serialized to disk by the
compiler as PE/COFF files. You can deserialize them with Assembly.Load().

The [Serializable] pseudo custom attribute can only be applied to a class, a
value type (struct or enum) or a delegate.

Richard
--
my email (E-Mail Removed) is encrypted with ROT13 (www.rot13.org)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The application requires that assembly office Version 12.0.0.0 be installed in the Global Assembly Cache (GAC) first. Bill Nguyen Microsoft VB .NET 2 30th May 2008 11:17 PM
Assembly generation failed -- Referenced assembly 'Interop.SHDocVw' does not have a strong name jm Microsoft C# .NET 0 26th May 2004 09:55 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET Framework 0 22nd Apr 2004 04:09 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET Framework 0 22nd Apr 2004 04:06 PM
Restricting access to Assembly.LoadFrom call within an assembly based on strong names Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 3 9th Dec 2003 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.