Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / December 2007

Tip: Looking for answers? Try searching our database.

IL .override question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AJ - 20 Nov 2007 10:35 GMT
I'm trying to resolve an issue where my application doesn't run after
obsfucation using dotfuscator.

I'm looking at the IL output from dotfuscator using reflector, and have
a query..

I've a class that implements a generic interface..

.class public abstract auto ansi beforefieldinit FactoryBase<class
CreatedClass>
   extends [mscorlib]System.Object
   implements App.IObjectFactory`1<!CreatedClass>
{...}

and it implements one of IObjectFactory's methods:

   .method public hidebysig newslot virtual final instance string a(!
CreatedClass A_0) cil managed
   {
       .override App.IObjectFactory` ::FriendlyNameFor
   }

My query is whether this second bit of IL is correct.... In trying to
reproduce the error in another project, I get the alternative:

.override App.IObjectFactory`<!CreatedClass>::FriendlyNameFor

i.e. it's specifying the generic parameter.

Is either or both correct? I don't know enough IL and haven't yet found
a suitable google reference...
Peter Ritchie [C# MVP] - 21 Dec 2007 18:24 GMT
Yes, they've both valid.  IL like that often depends on the source of the
class as the base being overridden.  For example, deriving from a class in
the same assembly and overriding a method will generate different IL from
deriving from a class in a different assembly and overriding a method, even
if the two base classes are textually identical.

Could you detail "doesn't work".
Signature

Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#

> I'm trying to resolve an issue where my application doesn't run after
> obsfucation using dotfuscator.
[quoted text clipped - 27 lines]
> Is either or both correct? I don't know enough IL and haven't yet found
> a suitable google reference...

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.