Merge pull request #1659 from alexanderkyte/stringbuilder-referencesource
[mono.git] / mcs / class / System.Runtime.Remoting / System.Runtime.Remoting.Channels / BinaryCore.cs
index 400fabd8fac05defafe8b7667ae3ac06e9fd952d..430bf632f9e07708a8fa8ddc8afee279d9dae206 100644 (file)
@@ -43,10 +43,11 @@ namespace System.Runtime.Remoting.Channels
                bool _strictBinding = false;
                IDictionary _properties;
                
-               TypeFilterLevel _filterLevel = TypeFilterLevel.Low;
-               
-               public static BinaryCore DefaultInstance = new BinaryCore ();
+               TypeFilterLevel _filterLevel;
                
+               public static BinaryCore DefaultInstance = new BinaryCore (TypeFilterLevel.Low);
+               public static readonly BinaryCore DefaultClientInstance = new BinaryCore (TypeFilterLevel.Full);
+
                public BinaryCore (object owner, IDictionary properties, string[] allowedProperties)
                {
                        _properties = properties;
@@ -87,8 +88,9 @@ namespace System.Runtime.Remoting.Channels
                        Init ();
                }
                
-               public BinaryCore ()
+               public BinaryCore (TypeFilterLevel filterLevel)
                {
+                       _filterLevel = filterLevel;
                        _properties = new Hashtable ();
                        Init ();
                }