Click here to Skip to main content
15,936,517 members
Home / Discussions / C#
   

C#

 
QuestionProblem with override the operators Pin
VendorX13-Mar-13 6:35
VendorX13-Mar-13 6:35 
AnswerRe: Problem with override the operators Pin
Eddy Vluggen13-Mar-13 6:37
professionalEddy Vluggen13-Mar-13 6:37 
GeneralRe: Problem with override the operators Pin
VendorX13-Mar-13 6:47
VendorX13-Mar-13 6:47 
GeneralRe: Problem with override the operators Pin
Eddy Vluggen13-Mar-13 7:20
professionalEddy Vluggen13-Mar-13 7:20 
AnswerRe: Problem with override the operators Pin
Dave Kreskowiak13-Mar-13 6:48
mveDave Kreskowiak13-Mar-13 6:48 
AnswerRe: Problem with override the operators Pin
Richard MacCutchan13-Mar-13 7:24
mveRichard MacCutchan13-Mar-13 7:24 
AnswerRe: Problem with override the operators Pin
Pete O'Hanlon13-Mar-13 7:27
mvePete O'Hanlon13-Mar-13 7:27 
GeneralRe: Problem with override the operators Pin
VendorX13-Mar-13 7:49
VendorX13-Mar-13 7:49 
OK, thanks guys for the links, but I've already seen this. Problem is that I'm trying to convert simple class from C++ to CS. Here is the code:
C#
class SOME_API SomeClass
{
public:
    // Accessors.
    bool operator==( const SomeClass& Other ) const
    {
        return Index == Other.Index;
    }

    bool operator!=( const SomeClass& Other ) const
    {
        return Index != Other.Index;
    }

    //...

private:
    // SomeClass index.
    int Index;

    //...
};

Is there any chance to convert this to CS without writing a bunch of code?
AnswerRe: Problem with override the operators Pin
DaveyM6913-Mar-13 9:02
professionalDaveyM6913-Mar-13 9:02 
AnswerRe: Problem with override the operators Pin
DaveyM6913-Mar-13 9:10
professionalDaveyM6913-Mar-13 9:10 
GeneralRe: Problem with override the operators Pin
VendorX13-Mar-13 9:38
VendorX13-Mar-13 9:38 
GeneralRe: Problem with override the operators Pin
MicroVirus13-Mar-13 12:06
MicroVirus13-Mar-13 12:06 
QuestionMdi form in c# Pin
keyur_raval13-Mar-13 2:09
keyur_raval13-Mar-13 2:09 
AnswerRe: Mdi form in c# Pin
Pete O'Hanlon13-Mar-13 2:17
mvePete O'Hanlon13-Mar-13 2:17 
QuestionHow to record the video from a System.Windows.Forms.Panel? Pin
makhondi13-Mar-13 1:33
makhondi13-Mar-13 1:33 
AnswerRe: How to record the video from a System.Windows.Forms.Panel? Pin
NotPolitcallyCorrect13-Mar-13 1:43
NotPolitcallyCorrect13-Mar-13 1:43 
AnswerRe: How to record the video from a System.Windows.Forms.Panel? Pin
makhondi13-Mar-13 1:50
makhondi13-Mar-13 1:50 
GeneralRe: How to record the video from a System.Windows.Forms.Panel? Pin
NotPolitcallyCorrect13-Mar-13 2:36
NotPolitcallyCorrect13-Mar-13 2:36 
AnswerRe: How to record the video from a System.Windows.Forms.Panel? Pin
Pete O'Hanlon13-Mar-13 2:08
mvePete O'Hanlon13-Mar-13 2:08 
AnswerRe: How to record the video from a System.Windows.Forms.Panel? Pin
Dave Kreskowiak13-Mar-13 6:47
mveDave Kreskowiak13-Mar-13 6:47 
QuestionHelp! Create File Pin
makhondi13-Mar-13 0:59
makhondi13-Mar-13 0:59 
AnswerRe: Help! Create File Pin
Garth J Lancaster13-Mar-13 1:12
professionalGarth J Lancaster13-Mar-13 1:12 
AnswerRe: Help! Create File Pin
Pete O'Hanlon13-Mar-13 1:13
mvePete O'Hanlon13-Mar-13 1:13 
AnswerRe: Help! Create File Pin
Garth J Lancaster13-Mar-13 1:13
professionalGarth J Lancaster13-Mar-13 1:13 
GeneralRe: Help! Create File Pin
GuyThiebaut13-Mar-13 1:48
professionalGuyThiebaut13-Mar-13 1:48 

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.