Click here to Skip to main content
16,005,467 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Enumerate Event Logs Pin
Ryan Cromwell13-Sep-02 8:24
Ryan Cromwell13-Sep-02 8:24 
GeneralMacro to collapse .NET Solution Explorer Tree. Pin
Derek Smigelski13-Sep-02 3:33
Derek Smigelski13-Sep-02 3:33 
GeneralEnums for return values... Pin
Ray Cassick12-Sep-02 18:08
Ray Cassick12-Sep-02 18:08 
GeneralRe: Enums for return values... Pin
Nish Nishant12-Sep-02 18:58
sitebuilderNish Nishant12-Sep-02 18:58 
GeneralRe: Enums for return values... Pin
Heath Stewart19-Sep-02 11:44
protectorHeath Stewart19-Sep-02 11:44 
GeneralRe: Writing a code enhancer Pin
Joao Vaz12-Sep-02 4:16
Joao Vaz12-Sep-02 4:16 
GeneralRe: Writing a code enhancer Pin
psatvz13-Sep-02 5:22
psatvz13-Sep-02 5:22 
GeneralRe: Writing a code enhancer Pin
Joao Vaz13-Sep-02 5:52
Joao Vaz13-Sep-02 5:52 
psatvz wrote:
// Do iterate type's in assembly A1
// Found a type with a certain attribute, say [MyAttr()]
// Iterate all instance-fields that type contains
// For each field, retreive the IL code for it, and change that code with my enhancment
// Write the enhanced type back to assembly A1


Yes, it's full possible to do it with Reflection Smile | :)
Reflection permits generation of il on memory , and serialization of the results to disk.

You could check source code of Reflector for .NET on http://www.aisto.com/roeder/dotnet/[^]

or the source of Anakrino decompiler(do a search on google) to help you with retrieving your il.

Forget the parser , with reflection, you have access to function names,I think that you don't have access to local names of the variables (or at least I didn't see this anywhere on the web or on the books ...), then you can add the attribute to the piece of code that you want and rewrite the il of the original application (dangerous), or write to a new assembly.












Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
GeneralRe: Writing a code enhancer Pin
psatvz13-Sep-02 6:21
psatvz13-Sep-02 6:21 
GeneralRe: Writing a code enhancer Pin
psatvz16-Sep-02 23:38
psatvz16-Sep-02 23:38 
GeneralRe: Writing a code enhancer Pin
James T. Johnson17-Sep-02 1:30
James T. Johnson17-Sep-02 1:30 
GeneralRe: Writing a code enhancer Pin
psatvz18-Sep-02 0:03
psatvz18-Sep-02 0:03 
GeneralRe: Writing a code enhancer Pin
psatvz18-Sep-02 5:09
psatvz18-Sep-02 5:09 
General.net embedded Windows Form Pin
Eric Lacroix11-Sep-02 18:07
Eric Lacroix11-Sep-02 18:07 
GeneralEnumerating an Enum Pin
Jamie Nordmeyer11-Sep-02 10:41
Jamie Nordmeyer11-Sep-02 10:41 
GeneralRe: Enumerating an Enum Pin
David Stone11-Sep-02 15:59
sitebuilderDavid Stone11-Sep-02 15:59 
GeneralRe: Enumerating an Enum Pin
Jamie Nordmeyer11-Sep-02 18:09
Jamie Nordmeyer11-Sep-02 18:09 
GeneralRe: Enumerating an Enum Pin
Heath Stewart19-Sep-02 11:47
protectorHeath Stewart19-Sep-02 11:47 
GeneralNews about generic Pin
elnino10-Sep-02 7:05
elnino10-Sep-02 7:05 
GeneralRe: News about generic Pin
Joao Vaz12-Sep-02 4:22
Joao Vaz12-Sep-02 4:22 
GeneralCreating a wizard with winforms Pin
Noam Ben Haim10-Sep-02 4:31
Noam Ben Haim10-Sep-02 4:31 
GeneralRe: Creating a wizard with winforms Pin
Michael P Butler10-Sep-02 5:23
Michael P Butler10-Sep-02 5:23 
Generalfyi .. .Net's Webcontrols do not generate proper XHTML tags. Pin
Thesisus8-Sep-02 10:25
Thesisus8-Sep-02 10:25 
GeneralRe: fyi .. .Net's Webcontrols do not generate proper XHTML tags. Pin
Chris Maunder10-Sep-02 7:08
cofounderChris Maunder10-Sep-02 7:08 
GeneralRe: fyi .. .Net's Webcontrols do not generate proper XHTML tags. Pin
Paul Watson12-Sep-02 21:36
sitebuilderPaul Watson12-Sep-02 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.