This is a migrated thread and some comments may be shown as answers.

Error Decompiling suspecting……

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
maledong
Top achievements
Rank 1
maledong asked on 21 Aug 2011, 06:21 AM
Hello all the telerik members and hard-working staffs:)

I'm now using your free version of Just-Decompiler, and found an interesting thing——
When I'm de-compiling the extended method defined in System.Core.dll (net framework 4.0) in Visual Basic, I found (plz look at my attached image)
It seems that the de-compiler has compiled to get the code with Shared class, however, VB doesn't allow such syntax...

And what's more……
WE can only define extended methods in Module if we use Visual Basic, something like:
Imports System.Runtime.CompilerServices 
Module Module1     
<Extension()>     
Public Function IsValidEmail(ByVal s As StringAs Boolean        
 'Here do what you want……  
End Function
End Module

Hope we can compile the extended class from C# into a correct form of vb.net
to make people avoid misunderstanding the concepts...

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsviatko Yovtchev
Telerik team
answered on 29 Aug 2011, 12:30 PM
Hello Maledong,

 There's definitely a problem with that and now that we know about it we'll fix it. Thanks for getting back to us. We really appreciate it.

Please, don't hesitate to let us know about any other problem you might have with JustDecompile.

Best wishes,
Tsviatko Yovtchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
maledong
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Share this question
or