Custom UITypeEditor.

Obfuscator.NET

Custom UITypeEditor.


danp 06-27-2008, 6:56 PM
Hi,

I am having trouble with a subclass implementation of UITypeEditor.  It seems that this code does not work after obfuscation.  Specifically the EditValue method seems to be affected.  I do have a very simple sample project if you are interested in reproducing.  Other than this one issue, it seems your product works really well.

I was wondering if you had any advice.

Thanks.

-Dan

Re: Custom UITypeEditor.


Bill 06-28-2008, 2:22 AM
Thanks you, Dan.

Please send the sample to supports@macrobject.com. We will try to fix the issus ASAP.

- Bill

Re: Custom UITypeEditor.


danp 06-28-2008, 2:16 PM
Thanks.  I have emailed a sample project (very simple repro case).

I mentioned in the email but for the forum's benefit:

I worked around this by using the obfuscation attribute and just not obfuscating this one class.  That does the trick but I would still be interested in hearing what is unique about subclasses of UITypeEditor.  Native subclasses to UITypeEditor like FileNameEditor do appear to work fine.

Thanks for any guidance.

-Dan

Re: Custom UITypeEditor.


David 06-29-2008, 6:36 PM
Sorry, we haven't received your email.
Please resend it again to [supports@macrobject.us]?
Thanks.

Re: Custom UITypeEditor.


David 07-02-2008, 6:53 AM
Thank you very much for your sample attached.

We’ve reviewed the sample project and find the issue is caused by the “EditorAttribute” of “TestObject.String1” is used the “ObfuscateTest_UITypeEditor.CustomUITypeEditor” class.
So you’d better to add an “ObfuscationAttribute” into the “ObfuscateTest_UITypeEditor.CustomUITypeEditor” class for skipping obfuscation, as below:

[ObfuscationAttribute(Exclude = true)]

Any questions please feel free to contact us, thanks.

Best Regards.

Powered by Community Server, by Telligent Systems