Results 1 to 3 of 3

Thread: possible to serialize a multi-dimensional array?

  1. #1

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    possible to serialize a multi-dimensional array?

    I"m about to start on a game tile designer, and i was wondering if this is possible.

    If not, i can make do with a single-dimension array, however the array would have to be an array of a custom structure.
    struct LandTile
    i
    {nt Damage;
    int Movement;
    int IndexNum; //reference an image
    }
    Will this work, or should i rethink it? I've never serialized anything before. This is a .net learning curve for me.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: possible to serialize a multi-dimensional array?

    In C# you can serialize nearly everything (search on google for C# serialize object)
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: possible to serialize a multi-dimensional array?

    i was concerned because i've read information that you can only serialize single-dimension ones. I wasn't sure if making it an array of structs mattered.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width