Base solution for your next web application
Open Closed

What is Serializable #3629


User avatar
0
tteoh created

I found this word in the source code here: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Application/Services/Dto/ListResultDto.cs">https://github.com/aspnetboilerplate/as ... sultDto.cs</a>

I tried the code and I don't know what is the Serializable use for and why do we need this. Because the program is still able to run without Serializable.

Thanks. /Tommy


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    It is needed when you return the result to third party apps.

    Thanks.

  • User Avatar
    0
    tteoh created

    Thank you for your acknowledgement.

    But could your please explain more about how does it affects the return result to third party apps in the context of ABP framework?

    Thanks. /Tommy

  • User Avatar
    0
    alper created
    Support Team

    Hi

    ListResultDto is a pre-build helper DTO to return a list of another DTO. Generally serialization (textual) is used for transferring objects. Serialization is needed to store a copy of the object, send them it to another process on the same system or over the network.

    There's a usage of ListResultDto here; <a class="postlink" href="https://www.aspnetzero.com/Documents/Developing-Step-By-Step-Core">https://www.aspnetzero.com/Documents/De ... -Step-Core</a>

  • User Avatar
    0
    Bernard created

    Hi Could you please share the link

    Thks