25 internal object[] m_crossAppDomainArray;
49 return m_assemblyFormat;
53 m_assemblyFormat = value;
63 return m_securityLevel;
67 m_securityLevel = value;
125 m_surrogates = selector;
142 internal object Deserialize(
Stream serializationStream, HeaderHandler handler,
bool fCheck)
144 return Deserialize(serializationStream, handler, fCheck,
null);
155 [SecuritySafeCritical]
158 return Deserialize(serializationStream, handler, fCheck:
true);
169 [SecuritySafeCritical]
172 return Deserialize(serializationStream, handler, fCheck:
true, methodCallMessage);
186 return Deserialize(serializationStream, handler, fCheck:
false);
201 return Deserialize(serializationStream, handler, fCheck:
false, methodCallMessage);
207 return Deserialize(serializationStream, handler, fCheck, isCrossAppDomain:
false, methodCallMessage);
213 if (serializationStream ==
null)
217 if (serializationStream.
CanSeek && serializationStream.
Length == 0L)
221 InternalFE internalFE =
new InternalFE();
222 internalFE.FEtypeFormat = m_typeFormat;
223 internalFE.FEserializerTypeEnum = InternalSerializerTypeE.Binary;
224 internalFE.FEassemblyFormat = m_assemblyFormat;
225 internalFE.FEsecurityLevel = m_securityLevel;
226 ObjectReader objectReader =
new ObjectReader(serializationStream, m_surrogates, m_context, internalFE, m_binder);
227 objectReader.crossAppDomainArray = m_crossAppDomainArray;
228 return objectReader.Deserialize(handler,
new __BinaryParser(serializationStream, objectReader), fCheck, isCrossAppDomain, methodCallMessage);
239 Serialize(serializationStream, graph,
null);
249 [SecuritySafeCritical]
252 Serialize(serializationStream, graph, headers, fCheck:
true);
258 if (serializationStream ==
null)
262 InternalFE internalFE =
new InternalFE();
263 internalFE.FEtypeFormat = m_typeFormat;
264 internalFE.FEserializerTypeEnum = InternalSerializerTypeE.Binary;
265 internalFE.FEassemblyFormat = m_assemblyFormat;
266 ObjectWriter objectWriter =
new ObjectWriter(m_surrogates, m_context, internalFE, m_binder);
267 __BinaryWriter serWriter =
new __BinaryWriter(serializationStream, objectWriter, m_typeFormat);
268 objectWriter.Serialize(graph, headers, serWriter, fCheck);
269 m_crossAppDomainArray = objectWriter.crossAppDomainArray;
272 internal static TypeInformation GetTypeInformation(
Type type)
276 TypeInformation value =
null;
279 bool hasTypeForwardedFrom;
280 string clrAssemblyName =
FormatterServices.GetClrAssemblyName(type, out hasTypeForwardedFrom);
281 value =
new TypeInformation(
FormatterServices.GetClrTypeFullName(type), clrAssemblyName, hasTypeForwardedFrom);
282 typeNameCache.
Add(type, value);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Allows users to control class loading and mandate what class to load.
abstract bool CanSeek
When overridden in a derived class, gets a value indicating whether the current stream supports seeki...
Defines the method call message interface.
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
Represents type declarations: class types, interface types, array types, value types,...
The exception thrown when an error occurs during serialization or deserialization.
Represents a collection of keys and values.To browse the .NET Framework source code for this type,...
Indicates a serialization surrogate selector class.
abstract long Length
When overridden in a derived class, gets the length in bytes of the stream.
void Add(TKey key, TValue value)
Adds the specified key and value to the dictionary.
StreamingContextStates
Defines a set of flags that specifies the source or destination context for the stream during seriali...
bool TryGetValue(TKey key, out TValue value)
Gets the value associated with the specified key.
Assists formatters in selection of the serialization surrogate to delegate the serialization or deser...
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....