What does [System.SerializableAttribute()] do

前端 未结 4 1593
暗喜
暗喜 2020-12-14 18:58

I am looking at somebody elses C# code and before a public enum there are the following lines:

[System.CodeDom.Compiler.GeneratedCodeAttribute(\"xsd\", \"4.0         


        
4条回答
  •  無奈伤痛
    2020-12-14 19:31

    From the documentation:

    Indicates that a class can be serialized

    See the documentation for an example.

提交回复
热议问题