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
  1. Home
  2. General Programming
  3. C#
  4. Custom DataType

Custom DataType

Scheduled Pinned Locked Moved C#
csharptutorialmcp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maqsood Ahmed
    wrote on last edited by
    #1

    Hello, Can anyone guide me on how to make my own datatype, that will work same as string but with some difference in the way string implements CompareTo method. It is not possible to extend String class (it is sealed). or is there any chance that I can change string's CompareTo implementation. I need to use this datatype in DataView and TableStyles. Thanks in advance. Maqsood Ahmed [MCP,C#] Kolachi Advanced Technologies http://www.kolachi.net

    S 1 Reply Last reply
    0
    • M Maqsood Ahmed

      Hello, Can anyone guide me on how to make my own datatype, that will work same as string but with some difference in the way string implements CompareTo method. It is not possible to extend String class (it is sealed). or is there any chance that I can change string's CompareTo implementation. I need to use this datatype in DataView and TableStyles. Thanks in advance. Maqsood Ahmed [MCP,C#] Kolachi Advanced Technologies http://www.kolachi.net

      S Offline
      S Offline
      spif2001
      wrote on last edited by
      #2

      Why not just make a static function "MyCompareTo" that u can call instead of string's CompareTo ?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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