2005-08-11 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.Serialization.Formatters.Binary / MessageFormatter.cs
index 8347f04482343753eb869167295202084d2caa72..b5049bf6fc54328ea32344fb8dab5b3f856eeacc 100644 (file)
@@ -41,7 +41,7 @@ namespace System.Runtime.Serialization.Formatters.Binary
 {\r
        internal class MessageFormatter\r
        {\r
-               public static void WriteMethodCall (BinaryWriter writer, object obj, Header[] headers, ISurrogateSelector surrogateSelector, StreamingContext context, FormatterAssemblyStyle assemblyFormat)\r
+               public static void WriteMethodCall (BinaryWriter writer, object obj, Header[] headers, ISurrogateSelector surrogateSelector, StreamingContext context, FormatterAssemblyStyle assemblyFormat, FormatterTypeStyle typeFormat)\r
                {\r
                        IMethodCallMessage call = (IMethodCallMessage)obj;\r
                        writer.Write ((byte) BinaryElement.MethodCall);\r
@@ -133,14 +133,14 @@ namespace System.Runtime.Serialization.Formatters.Binary
 \r
                        if (info != null)\r
                        {\r
-                               ObjectWriter objectWriter = new ObjectWriter (surrogateSelector, context, assemblyFormat);\r
+                               ObjectWriter objectWriter = new ObjectWriter (surrogateSelector, context, assemblyFormat, typeFormat);\r
                                objectWriter.WriteObjectGraph (writer, info, headers);\r
                        }\r
                        else\r
                                writer.Write ((byte) BinaryElement.End);\r
                }\r
 \r
-               public static void WriteMethodResponse (BinaryWriter writer, object obj, Header[] headers, ISurrogateSelector surrogateSelector, StreamingContext context, FormatterAssemblyStyle assemblyFormat)\r
+               public static void WriteMethodResponse (BinaryWriter writer, object obj, Header[] headers, ISurrogateSelector surrogateSelector, StreamingContext context, FormatterAssemblyStyle assemblyFormat, FormatterTypeStyle typeFormat)\r
                {\r
                        IMethodReturnMessage resp = (IMethodReturnMessage)obj;\r
                        writer.Write ((byte) BinaryElement.MethodResponse);\r
@@ -261,7 +261,7 @@ namespace System.Runtime.Serialization.Formatters.Binary
 \r
                        if (info != null)\r
                        {\r
-                               ObjectWriter objectWriter = new ObjectWriter (surrogateSelector, context, assemblyFormat);\r
+                               ObjectWriter objectWriter = new ObjectWriter (surrogateSelector, context, assemblyFormat, typeFormat);\r
                                objectWriter.WriteObjectGraph (writer, info, headers);\r
                        }\r
                        else\r