BinaryFormatter is obselete since .net5.0 due to security issues.
BinaryFormatter is used in DefaultSerializer.cs for Serializing and Deserializing objects which is now replaced with Newtonsoft.Json serialization object in this PR.
Also in Tests, BinaryFormatter is used in ObjectExtensions.cs to clone an object which is also done using JsonConverter.
BinaryFormatter is obselete since .net5.0 due to security issues. BinaryFormatter is used in DefaultSerializer.cs for Serializing and Deserializing objects which is now replaced with Newtonsoft.Json serialization object in this PR. Also in Tests, BinaryFormatter is used in ObjectExtensions.cs to clone an object which is also done using JsonConverter.