Permalink
Browse files

Seal Binary, Code, CodeWScope, MongoRegex and MongoServerEndPoint to …

…prevent issues with override classes.
  • Loading branch information...
1 parent 91c4af4 commit 34b772aa5110ec996e086c6f4101060a464f7a01 @lanwin lanwin committed May 22, 2010
View
@@ -11,7 +11,7 @@ namespace MongoDB
/// <summary>
/// </summary>
[Serializable]
- public class Binary : IEquatable<Binary>, ICloneable, IEnumerable<byte>, IXmlSerializable
+ public sealed class Binary : IEquatable<Binary>, ICloneable, IEnumerable<byte>, IXmlSerializable
{
/// <summary>
/// Initializes a new instance of the <see cref = "Binary" /> class.
View
@@ -6,7 +6,7 @@ namespace MongoDB
/// <summary>
/// </summary>
[Serializable]
- public class Code : IEquatable<Code>
+ public sealed class Code : IEquatable<Code>
{
/// <summary>
/// Initializes a new instance of the <see cref = "Code" /> class.
@@ -5,7 +5,7 @@ namespace MongoDB
/// <summary>
/// </summary>
[Serializable]
- public class CodeWScope : IEquatable<CodeWScope>
+ public sealed class CodeWScope : IEquatable<CodeWScope>
{
/// <summary>
/// Initializes a new instance of the <see cref = "CodeWScope" /> class.
@@ -8,7 +8,7 @@ namespace MongoDB
/// <summary>
/// </summary>
[Serializable]
- public class MongoRegex : IEquatable<MongoRegex>, IXmlSerializable
+ public sealed class MongoRegex : IEquatable<MongoRegex>, IXmlSerializable
{
/// <summary>
/// Initializes a new instance of the <see cref = "MongoRegex" /> class.
@@ -11,7 +11,7 @@ namespace MongoDB
/// Represents a mongodb server with host and port.
/// </summary>
[Serializable]
- public class MongoServerEndPoint : EndPoint, IEquatable<MongoServerEndPoint>, IXmlSerializable
+ public sealed class MongoServerEndPoint : EndPoint, IEquatable<MongoServerEndPoint>, IXmlSerializable
{
/// <summary>
/// The mongo default host name.

0 comments on commit 34b772a

Please sign in to comment.