Click here to Skip to main content
16,013,917 members
Home / Discussions / C#
   

C#

 
AnswerRe: about methods Pin
Christian Graus6-Dec-06 17:40
protectorChristian Graus6-Dec-06 17:40 
AnswerRe: about methods Pin
jdkulkarni6-Dec-06 17:43
jdkulkarni6-Dec-06 17:43 
GeneralRe: about methods Pin
Christian Graus6-Dec-06 18:08
protectorChristian Graus6-Dec-06 18:08 
GeneralRe: about methods Pin
ednrgc7-Dec-06 2:03
ednrgc7-Dec-06 2:03 
GeneralRe: about methods Pin
ednrgc7-Dec-06 2:05
ednrgc7-Dec-06 2:05 
AnswerRe: about methods Pin
User 16732526-Dec-06 17:59
User 16732526-Dec-06 17:59 
AnswerRe: about methods Pin
Bhupi Bhai6-Dec-06 19:30
Bhupi Bhai6-Dec-06 19:30 
QuestionExplore an assembly programatically... Pin
Super Lloyd6-Dec-06 15:58
Super Lloyd6-Dec-06 15:58 
In my current project I want to replace a library I'm using by an other one I will write my self.

1st I want to write a skeletton library which feature all type/method I'm using (with no real code inside).

For that I would like to go through my project, track every library object I'm using and all the method I'm calling and create a mock-up library where I would define all the types and and methods I'm using from the 3rd party lib.
The thing is I would like to do it automatically through someting like reflection.

Is there a way I could do that simply? Any tips or links?


Here is an example, current code below
class MyProject
{
    void AMethod(ALibObject1 obj)
    {
        obj.Method1();
        ALibObject2 o2 = obj.Method2();
        o2.Method3(new LibObject3());
    }
}


I want to go through the code (or probably compiled assembly) above (automatically), by using reflection on the assembly (or something similar) and produce:
public class ALibObject1
{
    public void Method1() {}
    ALibObject2 Method2() { return null; }
}
public class ALibObject2
{
    public void Method3(LibObject3 obj) {}
}
public class LibObject3
{
}


Any tip on how to do that simply in an automated way?
AnswerRe: Explore an assembly programatically... Pin
Super Lloyd6-Dec-06 16:41
Super Lloyd6-Dec-06 16:41 
AnswerRe: Explore an assembly programatically... Pin
Super Lloyd6-Dec-06 18:47
Super Lloyd6-Dec-06 18:47 
QuestionRichTextBox Pin
ppp0016-Dec-06 15:47
ppp0016-Dec-06 15:47 
AnswerRe: RichTextBox Pin
mav.northwind10-Dec-06 18:48
mav.northwind10-Dec-06 18:48 
QuestionHow to import XML into Excel using C#? Pin
uberhacker6-Dec-06 11:59
uberhacker6-Dec-06 11:59 
QuestionComparing user input to array characters Pin
neptune2k6-Dec-06 11:43
neptune2k6-Dec-06 11:43 
AnswerRe: Comparing user input to array characters Pin
lost in transition 6-Dec-06 11:48
lost in transition 6-Dec-06 11:48 
GeneralRe: Comparing user input to array characters Pin
neptune2k6-Dec-06 12:02
neptune2k6-Dec-06 12:02 
AnswerRe: Comparing user input to array characters Pin
led mike6-Dec-06 12:02
led mike6-Dec-06 12:02 
QuestionOdd ListBox behavior with drag/drop enabled Pin
Dan Neely6-Dec-06 10:24
Dan Neely6-Dec-06 10:24 
AnswerRe: Odd ListBox behavior with drag/drop enabled Pin
Dan Neely6-Dec-06 10:57
Dan Neely6-Dec-06 10:57 
QuestionSyntax error (missing operator) in query expression Pin
MyRunner6-Dec-06 9:50
MyRunner6-Dec-06 9:50 
AnswerRe: Syntax error (missing operator) in query expression Pin
Colin Angus Mackay6-Dec-06 10:03
Colin Angus Mackay6-Dec-06 10:03 
Questionreportviewer Pin
magnifique6-Dec-06 8:37
magnifique6-Dec-06 8:37 
AnswerRe: reportviewer Pin
jdkulkarni6-Dec-06 17:33
jdkulkarni6-Dec-06 17:33 
QuestionDatabase Design Question/Problem Pin
mfcuser6-Dec-06 7:11
mfcuser6-Dec-06 7:11 
AnswerRe: Database Design Question/Problem Pin
_Zorro_6-Dec-06 7:18
professional_Zorro_6-Dec-06 7:18 

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.