C# Xml Serialization

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 57

  • @charlotteerrazki7612
    @charlotteerrazki7612 6 ปีที่แล้ว +15

    this stuff you've been talking about , were explained in 3 hours in a C# class while you did in 10 minutes school sucks lol

    • @musoundix9228
      @musoundix9228 6 ปีที่แล้ว +3

      Why go to school, when you have internet :D

  • @ga7853
    @ga7853 5 ปีที่แล้ว +3

    Brian, you have such a smooth voice built for teaching. Thank you so much

  • @jkf16m96
    @jkf16m96 3 ปีที่แล้ว +2

    Thank you, I needed this to refactor something at work.
    Pd: Student programmers, for legacy code, don't refactor everything at once, make a plan and UML diagrams at least.
    The production code leave it as it is, and touch it little by little.

  • @GravityColoy
    @GravityColoy 2 ปีที่แล้ว

    That was very helpful. Thank you very much! And your voice is sooo calming.

  • @MaxAigner
    @MaxAigner 4 ปีที่แล้ว +4

    really well done. I wished the Microsoft docs were more crisp like that!

  • @betterlifeexe4378
    @betterlifeexe4378 3 ปีที่แล้ว

    Thanks Brian, for helping me get sht done

  • @JJC2611
    @JJC2611 4 ปีที่แล้ว

    Short and sweet. Thanks!

  • @Lexyvil
    @Lexyvil 6 ปีที่แล้ว

    Thanks a lot! I was wondering for days what the purpose of [XmlAttribute] was, or other [ ]'s above variables or classes. It makes me wish there were more guides or tutorials on that online, or maybe I just haven't looked at the right places.

  • @ΔΗΜΗΤΡΗΣΒΛΑΧΟΠΟΥΛΟΣ-ε4ι
    @ΔΗΜΗΤΡΗΣΒΛΑΧΟΠΟΥΛΟΣ-ε4ι 7 ปีที่แล้ว

    Great video. You help me a lot for xml.

  • @gulraizjavaid9258
    @gulraizjavaid9258 7 ปีที่แล้ว

    very simple and quick tutorial, thank you! :D

  • @sye5561
    @sye5561 3 ปีที่แล้ว

    Good as video

  • @andriimelnichuk3851
    @andriimelnichuk3851 8 ปีที่แล้ว

    Thanks a lot! Nice mini-tutorial.

  • @Kaiyoga2
    @Kaiyoga2 8 ปีที่แล้ว

    Very well explained. Thank you

  • @romannekliukov7949
    @romannekliukov7949 6 ปีที่แล้ว

    Great video! Thank you

  • @ПрограмерскарадионицаШколаРаја

    You rock!
    Love it!

  • @digikris8322
    @digikris8322 3 ปีที่แล้ว

    Thanks but, can you zoom in a little closer I can't see very well ;D

  • @drneshi
    @drneshi 9 ปีที่แล้ว

    Thank you, this helped me alot.

  • @DrDress
    @DrDress 5 ปีที่แล้ว

    I get an error:
    An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll
    Additional information: There was an error reflecting type 'RandomCircles.Annealing'.
    Any idea of what that means?

  • @fufuto
    @fufuto 5 ปีที่แล้ว

    What if the variables are changing dynamically, how are we going to store the values ?

  • @kairan187
    @kairan187 9 ปีที่แล้ว

    What IDE is this? How are you getting the 3 References notations above your methods and such?

    • @LeftTechticle
      @LeftTechticle  9 ปีที่แล้ว

      VS Ultimate 2013

    • @curtissmithson6348
      @curtissmithson6348 8 ปีที่แล้ว

      +Curtis .Smithson It is Resharper, you can see in the menu at 8:49

  • @galt57
    @galt57 10 ปีที่แล้ว

    Yeah, but how often am I going to need to serialize one object? Usually I am going to need to serialize collections of objects.

    • @LeftTechticle
      @LeftTechticle  10 ปีที่แล้ว

      Not often, considering your last sentence. Unless you find yourself writing data types that encompass the collections.

    • @galt57
      @galt57 10 ปีที่แล้ว

      LeftTechticle
      Yes, it would be helpful if your example object contained a collection, or if you serialized a collection of these objects, and when would XmlWriter or XmlDocument be needed?

    • @LeftTechticle
      @LeftTechticle  10 ปีที่แล้ว

      galt57 XmlWriter is for performant, custom XML generation (an implementation of this is typically not something to be directly consumed). XmlDocument is good for editing existing Xml files.

    • @MaybeKian
      @MaybeKian 3 ปีที่แล้ว

      @@galt57 List....

  • @arunavoray
    @arunavoray 7 ปีที่แล้ว

    can u make a video on binary serialization

  • @trueboss9265
    @trueboss9265 3 ปีที่แล้ว

    How can I append to an existing file?

  • @kayumiy
    @kayumiy 5 ปีที่แล้ว

    what if we don't know xml tag?

  • @uccoskun
    @uccoskun 9 ปีที่แล้ว

    good introduction.

  • @damienk777
    @damienk777 7 ปีที่แล้ว

    Is this commonly used for saving things like games?

    • @MaybeKian
      @MaybeKian 3 ปีที่แล้ว

      no xml is very useless, unless you code in html or work with a old project. json is the new way to go

  • @kofestar
    @kofestar 9 ปีที่แล้ว

    Hmm i keep getting this error
    "An exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll but was not handled in user code"
    Where did I go wrong

    • @LeftTechticle
      @LeftTechticle  9 ปีที่แล้ว

      Kofi Ghartey-tagoe Your probably trying to read a file that cannot be opened without administrative rights. Run your app as Administrator to confirm this.

    • @kofestar
      @kofestar 9 ปีที่แล้ว

      Is it possible that I send you my project and you help me understand a few things? Also to do with mvc

    • @LeftTechticle
      @LeftTechticle  9 ปีที่แล้ว

      Kofi Ghartey-tagoe Yes it's possible

    • @kofestar
      @kofestar 9 ปีที่แล้ว

      How should I send it to you? its giving me this exception
      An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code
      Additional information: The model backing the 'NumberDBContext' context has changed since the database was created.
      Has me baffled

    • @LeftTechticle
      @LeftTechticle  9 ปีที่แล้ว

      Kofi Ghartey-tagoe Upload it somewhere and send me the link

  • @mertzypoo1544
    @mertzypoo1544 6 ปีที่แล้ว

    Hey whats up Brian

  • @phoenixdeath6666
    @phoenixdeath6666 7 ปีที่แล้ว

    how could you do this to change a txt file to xml

    • @charlotteerrazki7612
      @charlotteerrazki7612 6 ปีที่แล้ว

      follow the fucking lesson to understand ugh lol we cannot just put knowledge into your head you need to learn

  • @gerionvevan414
    @gerionvevan414 7 ปีที่แล้ว +2

    I had to using System.IO. I use visual studio 2017

  • @47Mortuus
    @47Mortuus 4 ปีที่แล้ว

    {
    new XmlSerializer(typeof(Class1)).Serialize(stream, this);
    }

    • @47Mortuus
      @47Mortuus 4 ปีที่แล้ว

      the less "var" there is in your code, the better :D

  • @charlotteerrazki7612
    @charlotteerrazki7612 6 ปีที่แล้ว

    Brian we understand the logic you gave use by falsing you are not a male sorry lol

  • @shawnzernik1416
    @shawnzernik1416 8 ปีที่แล้ว

    Here's some code that can be copied and pasted:
    www.internetworkconsulting.net/articles/programming-xml-xml-serialization.aspx