What is the equivalent of [Serializable] in .NET Core ? (Conversion Projects)
<p>In many cases, when I want to convert current .NET Framework projects to .NET Core equivalent, some classes have <strong>Serializable attribute</strong>.</p>

<p>What should I do for convert them in .NET Core ? (In this time I delete them !!!)</p>

<p><strong>EDIT</strong></p>

<p>Consider this code :</p>

<pre><code>using System;

namespace DotLiquid.Exceptions
{
    [Serializable] // I delete it now !!!!!!!
    public class FilterNotFoundException : Exception
    {
        public FilterNotFoundException(string message, FilterNotFoundException innerException)
            : base(message, innerException)
        {
        }

        public FilterNotFoundException(string message, params string[] args)
            : base(string.Format(message, args))
        {
        }

        public FilterNotFoundException(string message)
            : base(message)
        {
        }
    }
}
</code></pre>

<p>above code without [Serializable] works in .NET Core without syntax problem.</p>

<p>But I want to know when I delete [Serializable] </p>

<p>What is side effects ?</p>

<p>What places should be changed?</p>

<p>When should I use JSON.NET (or ...) instead of [Serializable] ?</p>