• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Recommendations for deep copying C# object

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by suityou01 View Post
    Well as I said in the OP it is a plan B.

    If I used sheer number of projects, and sheer number of classes and interfaces it's probably the biggest and most complicated thing I have ever ever worked on.
    What? I said how big is the object, not the project. i.e. does it boil down to a few key-value pairs or hundreds of kilobytes of data.

    Why would I use a C++ term for a C hash object? The term here is POCO. Plain Old CLR Object - Wikipedia, the free encyclopedia
    Because most OO programming concepts are common to most OO languages? POD is referenced from that very article btw.
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    Comment


      #12
      The problem is that my class wraps a user control. So all objects need to be serialisable.

      Additional information: Type 'System.Windows.Forms.UserControl' in Assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.
      And I think this sets me back to square one.
      Knock first as I might be balancing my chakras.

      Comment


        #13
        Sounds like another Suity disaster in the making.

        Good luck with that

        Comment


          #14
          Oh and

          c# - Why are System.Windows.Forms.Control not marked as serializable? - Stack Overflow

          Comment


            #15
            Originally posted by DimPrawn View Post
            Sounds like another Suity disaster in the making.

            Good luck with that
            So I implemented IClonable and wrote my own clone method. Disaster averted
            Knock first as I might be balancing my chakras.

            Comment


              #16
              JSON is a subset of YAML I think.

              Comment


                #17
                Originally posted by suityou01 View Post
                So I implemented IClonable and wrote my own clone method. Disaster averted
                And you've just proved why C# is tulipe!

                Comment


                  #18
                  Originally posted by Churchill View Post
                  And you've just proved why C# is tulipe!
                  No, I think all he has done is shown that a poor workman blames his tools...
                  merely at clientco for the entertainment

                  Comment


                    #19
                    Originally posted by eek View Post
                    No, I think all he has done is shown that a poor workman blames his tools...
                    C# is still tulipe. Whether or not Suity makes a balls of it or not ;-)

                    Comment


                      #20
                      Originally posted by Churchill View Post
                      And you've just proved why C# is tulipe!
                      Because it provides a handy interface to let you do this?

                      C# is pretty neat, generally speaking.
                      Originally posted by MaryPoppins
                      I'd still not breastfeed a nazi
                      Originally posted by vetran
                      Urine is quite nourishing

                      Comment

                      Working...
                      X