We need you! We're working hard on the next version of Developer Fusion -
Let us know what you think we should be up to!
- namespace System.Runtime.Serialization.Formatters
- {
- using System;
- using System.Runtime.Serialization;
- using System.Security.Permissions;
- using System.Reflection;
- using System.Diagnostics;
-
-
-
-
-
-
-
-
-
-
-
-
-
- /// <internalonly/>
- [StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0x" + AssemblyRef.EcmaPublicKeyFull, Name = "System.Runtime.Remoting")]
- [System.Runtime.InteropServices.ComVisible(true)]
- public sealed class InternalRM
- {
- /// <internalonly/>
- [System.Diagnostics.Conditional("_LOGGING")]
- public static void InfoSoap(params object[] messages)
- {
- BCLDebug.Trace("SOAP", messages);
- }
-
-
- /// <internalonly/>
- public static bool SoapCheckEnabled()
- {
- return BCLDebug.CheckEnabled("SOAP");
- }
- }
-
- /// <internalonly/>
- [StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0x" + AssemblyRef.MicrosoftPublicKeyFull, Name = "System.Runtime.Serialization.Formatters.Soap")]
- [System.Runtime.InteropServices.ComVisible(true)]
- public sealed class InternalST
- {
- private InternalST()
- {
- }
-
- /// <internalonly/>
- [System.Diagnostics.Conditional("_LOGGING")]
- public static void InfoSoap(params object[] messages)
- {
- BCLDebug.Trace("SOAP", messages);
- }
-
-
- /// <internalonly/>
- public static bool SoapCheckEnabled()
- {
- return BCLDebug.CheckEnabled("Soap");
- }
-
- /// <internalonly/>
- [System.Diagnostics.Conditional("SER_LOGGING")]
- public static void Soap(params object[] messages)
- {
- if (!(messages[0] is string))
- messages[0] = (messages[0].GetType()).Name + " ";
- else
- messages[0] = messages[0] + " ";
-
- BCLDebug.Trace("SOAP", messages);
- }
-
- /// <internalonly/>
- [System.Diagnostics.Conditional("_DEBUG")]
- public static void SoapAssert(bool condition, string message)
- {
- BCLDebug.Assert(condition, message);
- }
-
- /// <internalonly/>
- public static void SerializationSetValue(FieldInfo fi, object target, object value)
- {
- if (fi == null)
- throw new ArgumentNullException("fi");
-
- if (target == null)
- throw new ArgumentNullException("target");
-
- if (value == null)
- throw new ArgumentNullException("value");
-
- FormatterServices.SerializationSetValue(fi, target, value);
- }
-
- /// <internalonly/>
- public static Assembly LoadAssemblyFromString(string assemblyString)
- {
- return FormatterServices.LoadAssemblyFromString(assemblyString);
- }
- }
-
- static internal class SerTrace
- {
- [Conditional("_LOGGING")]
- static internal void InfoLog(params object[] messages)
- {
- BCLDebug.Trace("BINARY", messages);
- }
-
- [Conditional("SER_LOGGING")]
- static internal void Log(params object[] messages)
- {
- if (!(messages[0] is string))
- messages[0] = (messages[0].GetType()).Name + " ";
- else
- messages[0] = messages[0] + " ";
- BCLDebug.Trace("BINARY", messages);
- }
- }
- }