Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. I am using Farseer 2.1 Pin
BillWoodruff11-Nov-14 5:13
professionalBillWoodruff11-Nov-14 5:13 
GeneralRe: How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. I am using Farseer 2.1 Pin
OriginalGriff11-Nov-14 5:35
mveOriginalGriff11-Nov-14 5:35 
GeneralRe: How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. I am using Farseer 2.1 Pin
Pete O'Hanlon10-Nov-14 22:48
mvePete O'Hanlon10-Nov-14 22:48 
GeneralRe: How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. I am using Farseer 2.1 Pin
OriginalGriff10-Nov-14 22:18
mveOriginalGriff10-Nov-14 22:18 
QuestionException Regarding RCW (Runtime Callable Wrapper) Pin
Django_Untaken10-Nov-14 7:37
Django_Untaken10-Nov-14 7:37 
AnswerRe: Exception Regarding RCW (Runtime Callable Wrapper) Pin
Richard MacCutchan10-Nov-14 21:34
mveRichard MacCutchan10-Nov-14 21:34 
AnswerRe: Exception Regarding RCW (Runtime Callable Wrapper) Pin
Bernhard Hiller10-Nov-14 23:28
Bernhard Hiller10-Nov-14 23:28 
Questionquestion re abstract class with no implementation allowing an abstract property to be set in the 'cTor Pin
BillWoodruff10-Nov-14 6:25
professionalBillWoodruff10-Nov-14 6:25 
C#
public abstract class NoImplementations
{
    public abstract void DoSomething(int arg1, string arg2);

    public abstract int SomeInt { set; get; }

    public NoImplementations()
    {
        // why no compiler error here ?
        SomeInt = 34;
    }
}

private class sonOfNoImplementation : NoImplementations
{
    public override void DoSomething(int arg1, string arg2)
    {
        // blah blah blah
    }

    public override int SomeInt { get; set; }
}

// Example:

// executed in some method, or EventHandler
sonOfNoImplementation sonOfNI = new sonOfNoImplementation();

int x = sonOfNI.SomeInt;

// dang me: x == 34 => 'true
I am baffled I can "get away with this."

Appreciate your thoughts !
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"

AnswerRe: question re abstract class with no implementation allowing an abstract property to be set in the 'cTor Pin
Richard MacCutchan10-Nov-14 7:08
mveRichard MacCutchan10-Nov-14 7:08 
SuggestionRe: question re abstract class with no implementation allowing an abstract property to be set in the 'cTor Pin
Richard Deeming10-Nov-14 8:08
mveRichard Deeming10-Nov-14 8:08 
GeneralRe: question re abstract class with no implementation allowing an abstract property to be set in the 'cTor Pin
Sergey Alexandrovich Kryukov10-Nov-14 10:05
mvaSergey Alexandrovich Kryukov10-Nov-14 10:05 
GeneralRe: question re abstract class with no implementation allowing an abstract property to be set in the 'cTor Pin
Richard Deeming10-Nov-14 10:13
mveRichard Deeming10-Nov-14 10:13 
GeneralSure Pin
Sergey Alexandrovich Kryukov10-Nov-14 10:17
mvaSergey Alexandrovich Kryukov10-Nov-14 10:17 
AnswerRe: question re abstract class with no implementation allowing an abstract property to be set in the 'cTor Pin
OriginalGriff10-Nov-14 8:14
mveOriginalGriff10-Nov-14 8:14 
AnswerIt makes perfect sense! Pin
Sergey Alexandrovich Kryukov10-Nov-14 8:26
mvaSergey Alexandrovich Kryukov10-Nov-14 8:26 
GeneralRe: It makes perfect sense! Pin
Brisingr Aerowing10-Nov-14 8:36
professionalBrisingr Aerowing10-Nov-14 8:36 
GeneralRe: It makes perfect sense! Pin
Eddy Vluggen10-Nov-14 8:43
professionalEddy Vluggen10-Nov-14 8:43 
GeneralPerverted understanding of "democracy" Pin
Sergey Alexandrovich Kryukov10-Nov-14 9:57
mvaSergey Alexandrovich Kryukov10-Nov-14 9:57 
GeneralRe: Perverted understanding of "democracy" Pin
Eddy Vluggen10-Nov-14 12:58
professionalEddy Vluggen10-Nov-14 12:58 
GeneralRe: Perverted understanding of "democracy" Pin
Sergey Alexandrovich Kryukov10-Nov-14 13:07
mvaSergey Alexandrovich Kryukov10-Nov-14 13:07 
GeneralRe: Perverted understanding of "democracy" Pin
Eddy Vluggen11-Nov-14 0:32
professionalEddy Vluggen11-Nov-14 0:32 
GeneralRe: Perverted understanding of "democracy" Pin
Sergey Alexandrovich Kryukov11-Nov-14 3:54
mvaSergey Alexandrovich Kryukov11-Nov-14 3:54 
GeneralRe: It makes perfect sense! Pin
Eddy Vluggen10-Nov-14 8:40
professionalEddy Vluggen10-Nov-14 8:40 
GeneralThis is a confession Pin
Sergey Alexandrovich Kryukov10-Nov-14 10:01
mvaSergey Alexandrovich Kryukov10-Nov-14 10:01 
QuestionRe: This is a confession Pin
Eddy Vluggen10-Nov-14 12:56
professionalEddy Vluggen10-Nov-14 12:56 

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.