Skip to content

Commit 6b550db

Browse files
authored
CSHARP-3601: Removed [Serializable] attribute (#1457)
1 parent d3f55b3 commit 6b550db

File tree

132 files changed

+1
-1113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1
-1113
lines changed

src/MongoDB.Bson/Exceptions/BsonException.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson
2121
/// <summary>
2222
/// Represents a BSON exception.
2323
/// </summary>
24-
[Serializable]
2524
public class BsonException : Exception
2625
{
2726
// constructors

src/MongoDB.Bson/Exceptions/BsonInternalException.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson
2121
/// <summary>
2222
/// Represents a BSON internal exception (almost surely the result of a bug).
2323
/// </summary>
24-
[Serializable]
2524
public class BsonInternalException : BsonException
2625
{
2726
// constructors

src/MongoDB.Bson/Exceptions/BsonSerializationException.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson
2121
/// <summary>
2222
/// Represents a BSON serialization exception.
2323
/// </summary>
24-
[Serializable]
2524
public class BsonSerializationException : BsonException
2625
{
2726
// constructors

src/MongoDB.Bson/Exceptions/DuplicateBsonMemberMapAttributeException.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson
2121
/// <summary>
2222
/// Indicates that an attribute restricted to one member has been applied to multiple members.
2323
/// </summary>
24-
[Serializable]
2524
public class DuplicateBsonMemberMapAttributeException : BsonException
2625
{
2726
// constructors

src/MongoDB.Bson/Exceptions/TruncationException.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson
2121
/// <summary>
2222
/// Represents a truncation exception.
2323
/// </summary>
24-
[Serializable]
2524
public class TruncationException : BsonException
2625
{
2726
// constructors

src/MongoDB.Bson/IO/BsonBinaryReaderSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson.IO
2121
/// <summary>
2222
/// Represents settings for a BsonBinaryReader.
2323
/// </summary>
24-
[Serializable]
2524
public class BsonBinaryReaderSettings : BsonReaderSettings
2625
{
2726
// private static fields

src/MongoDB.Bson/IO/BsonBinaryWriterSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace MongoDB.Bson.IO
2121
/// <summary>
2222
/// Represents settings for a BsonBinaryWriter.
2323
/// </summary>
24-
[Serializable]
2524
public class BsonBinaryWriterSettings : BsonWriterSettings
2625
{
2726
// private static fields

src/MongoDB.Bson/IO/BsonDocumentReaderSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace MongoDB.Bson.IO
2020
/// <summary>
2121
/// Represents settings for a BsonDocumentReader.
2222
/// </summary>
23-
[Serializable]
2423
public class BsonDocumentReaderSettings : BsonReaderSettings
2524
{
2625
// private static fields

src/MongoDB.Bson/IO/BsonDocumentWriterSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace MongoDB.Bson.IO
2020
/// <summary>
2121
/// Represents settings for a BsonDocumentWriter.
2222
/// </summary>
23-
[Serializable]
2423
public class BsonDocumentWriterSettings : BsonWriterSettings
2524
{
2625
// private static fields

src/MongoDB.Bson/IO/BsonReaderSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace MongoDB.Bson.IO
2020
/// <summary>
2121
/// Represents settings for a BsonReader.
2222
/// </summary>
23-
[Serializable]
2423
public abstract class BsonReaderSettings
2524
{
2625
// private fields

0 commit comments

Comments
 (0)