Red Gate forums :: View topic - Using [DoNotPruneType()] dont work on inherited types
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

Using [DoNotPruneType()] dont work on inherited types

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
Lector



Joined: 16 Jun 2010
Posts: 1

PostPosted: Wed Jun 16, 2010 4:05 pm    Post subject: Using [DoNotPruneType()] dont work on inherited types Reply with quote

Hello,

We are developing a WPF-Application using .NET Framework 3.5 SP1. Using XAML we have the problem that SmartAssembly sometimes prunes some Properties that are only used by XAML because those dependencies cant be detected.
One possibility to avoid this problem is to use the [DoNotPrune()] or [DoNotPruneType()]-Attribute on Classes that are used by XAML. This works fine.
But 95% of our classes, that are used by XAML, are inherited from a speacial Base-Class i thought it would make sense to just add the [DoNotPruneType()]-Attribute to this base-class to prohibit Pruning on all the subclasses. Inheriting this property works very well and i can also read this property out of the inherited classes but SmartAssembly dont detect the [DoNotPruneType()]-Attribute on inherited Types.

It would be great if there would be a way to activate this property also on inherited types. I dont want to write this attribute to any single class because we have ~100 classes in our project that derive from your special XAML-compatible class.

We are using SmartAssembly v4.2.5.

Thanks,

Lector
Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Thu Jun 17, 2010 12:49 pm    Post subject: Reply with quote

OK, thanks for that - I'll add this as a feature request.
Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Thu Jun 17, 2010 12:54 pm    Post subject: Reply with quote

This is feature request SA-24. Fingers crossed Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group