Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User 'sub-class'
Message
From
24/07/2006 19:35:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 2.0
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01139190
Message ID:
01139499
Views:
11
>Hi,
>
>I need to allow users to effectively 'sub-class' a .NET object at runtime. For example I have a graphics object with various properties (top, left, font etc). At runtime the user may need, in certain instances, to 'override' one ore more of these properties. These overrides can also be 'nested'.
>
>I'm looking for a good strategy, as generic as possible, for both storing and recreating these objects. Any suggestions? (I've a couple of avenues to explore but I'd appreciate any blue sky ideas...)
>
>Regards,
>Viv

Viv,
I can't say I understood it exactly:) Anyway I'll try. Marking your type (maybe a shallow copy of it if not all) as serializable and serialize/deserialize it with BinaryFormatter would work?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform