Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# programme crashes without an obvious reason Pin
Pete O'Hanlon28-Feb-12 23:22
mvePete O'Hanlon28-Feb-12 23:22 
GeneralRe: C# programme crashes without an obvious reason Pin
Eddy Vluggen29-Feb-12 0:30
professionalEddy Vluggen29-Feb-12 0:30 
AnswerRe: C# programme crashes without an obvious reason Pin
jschell28-Feb-12 13:52
jschell28-Feb-12 13:52 
AnswerRe: C# programme crashes without an obvious reason Pin
Shameel28-Feb-12 23:15
professionalShameel28-Feb-12 23:15 
QuestionPropertyDescriptor.GetValue and PropertyInfo.GetValue Pin
kashme28-Feb-12 3:23
kashme28-Feb-12 3:23 
AnswerRe: PropertyDescriptor.GetValue and PropertyInfo.GetValue Pin
Eddy Vluggen28-Feb-12 9:01
professionalEddy Vluggen28-Feb-12 9:01 
QuestionMOQ unit test Pin
michaelgr128-Feb-12 2:50
michaelgr128-Feb-12 2:50 
AnswerRe: MOQ unit test Pin
Eddy Vluggen28-Feb-12 9:10
professionalEddy Vluggen28-Feb-12 9:10 
Something like this;
C#
    class MyBaseClass
    {
        public virtual string methodName()
        {
            return "This is base calling";
        }
    }
    class MyTestedClass: MyBaseClass
    {
        public override string methodName()
        {
            return "This is the testing value calling";
        }

    }
    class MyTestedClassMock: MyBaseClass
    {
        public override string methodName()
        {
            return "Whaahaha, I'm not the real one, just a mock-stand in.";
        }
    }

//..in the test-bit
MyBaseClass someObject = new MyTestedClassMock();
                        // or new MyTestedClass();
MessageBox.Show(someObject.methodName());

Bastard Programmer from Hell Suspicious | :suss:

QuestionAccessing System Databases Pin
AmbiguousName28-Feb-12 1:48
AmbiguousName28-Feb-12 1:48 
AnswerRe: Accessing System Databases Pin
Bernhard Hiller28-Feb-12 3:25
Bernhard Hiller28-Feb-12 3:25 
QuestionSynchronize RichTextBox scrolling Pin
lune1228-Feb-12 0:57
lune1228-Feb-12 0:57 
AnswerRe: Synchronize RichTextBox scrolling Pin
Shameel28-Feb-12 4:04
professionalShameel28-Feb-12 4:04 
GeneralRe: Synchronize RichTextBox scrolling Pin
lune1228-Feb-12 6:01
lune1228-Feb-12 6:01 
GeneralRe: Synchronize RichTextBox scrolling Pin
Shameel28-Feb-12 18:33
professionalShameel28-Feb-12 18:33 
QuestionPlease help compiling Dr Dobbs Challenge from 2008 Pin
cgb14327-Feb-12 8:38
cgb14327-Feb-12 8:38 
AnswerRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
vbmike27-Feb-12 9:01
vbmike27-Feb-12 9:01 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14328-Feb-12 2:54
cgb14328-Feb-12 2:54 
SuggestionRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
RobCroll27-Feb-12 12:37
RobCroll27-Feb-12 12:37 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14328-Feb-12 3:01
cgb14328-Feb-12 3:01 
AnswerRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
BobJanova28-Feb-12 3:19
BobJanova28-Feb-12 3:19 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14328-Feb-12 4:57
cgb14328-Feb-12 4:57 
AnswerRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
Shameel28-Feb-12 4:10
professionalShameel28-Feb-12 4:10 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14328-Feb-12 4:54
cgb14328-Feb-12 4:54 
AnswerRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
Pete O'Hanlon28-Feb-12 4:42
mvePete O'Hanlon28-Feb-12 4:42 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14328-Feb-12 4:50
cgb14328-Feb-12 4:50 

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.