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. Database & SysAdmin
  3. Database
  4. datacolumn boxing

datacolumn boxing

Scheduled Pinned Locked Moved Database
questionlounge
5 Posts 3 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
    Maverickcool
    wrote on last edited by
    #1

    hi I have a general question if I write row[0][0] = 5; does a boxing occurs ? should I write (from perfomance look ) row[0][0] = (object)5;

    M J 2 Replies Last reply
    0
    • M Maverickcool

      hi I have a general question if I write row[0][0] = 5; does a boxing occurs ? should I write (from perfomance look ) row[0][0] = (object)5;

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      What database are you using what is boxing - not in any SQL I know of

      Never underestimate the power of human stupidity RAH

      M 1 Reply Last reply
      0
      • M Mycroft Holmes

        What database are you using what is boxing - not in any SQL I know of

        Never underestimate the power of human stupidity RAH

        M Offline
        M Offline
        Maverickcool
        wrote on last edited by
        #3

        i'm using SQL 2005 but the boxing is not done by the SQL server it's done by the CLR

        M 1 Reply Last reply
        0
        • M Maverickcool

          i'm using SQL 2005 but the boxing is not done by the SQL server it's done by the CLR

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Sorry, can't help you there I don't use the cls, I know of no one who does. Stupid idea really, another layer of abstraction so the poor dev does not need to learn TSQL. However I use convert.to????? in C# rather than boxing.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • M Maverickcool

            hi I have a general question if I write row[0][0] = 5; does a boxing occurs ? should I write (from perfomance look ) row[0][0] = (object)5;

            J Offline
            J Offline
            jai_101
            wrote on last edited by
            #5

            In C# there are two types of Convertion is used. Boxing :convert ValueTypes to Reference Types UnBoxing :Reference Types to convert ValueTypes From Your code row[0][0] = 5; ---> This is implicit Boxing row[0][0] = (object)5; ---> This is Explicit Boxing You can use any of these to the Conversion. This is General DataBase MessageBoard. So don't ask C# Questions here use C# MessageBoard. Bye, Jai :rose:

            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