Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

VendorX

@VendorX
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem with override the operators
    V VendorX

    Thanks for the snippets DaveyM69 - I've ended up with something similar. For now, to compare I'm using GetIndex(), but my converted code is constantly growing. Didn't know that CS is so much more complicated... Thanks again...

    C# help question

  • Problem with override the operators
    V VendorX

    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:

    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?

    C# help question

  • Problem with override the operators
    V VendorX

    ...and..? On MSDN they are overloadable...

    C# help question

  • Problem with override the operators
    V VendorX

    I'm trying to override those operators:

    ==, !=, <, >, <=, >=, <<, >>

    ...but VS10 give me this error:

    Overloadable unary operator expected

    Is there some special conditions to make this work..? Cause those operators are overloadable...

    C# help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups