46 references to FormatterServices
mscorlib (35)
system\reflection\memberinfoserializationholder.cs (1)
79
Assembly assem =
FormatterServices
.LoadAssemblyFromString(assemblyName);
system\runtime\remoting\message.cs (2)
3875
SerializationMonkey m = (SerializationMonkey)
FormatterServices
.GetUninitializedObject(typeof(SerializationMonkey));
4239
SerializationMonkey m = (SerializationMonkey)
FormatterServices
.GetUninitializedObject(typeof(SerializationMonkey));
system\runtime\remoting\objref.cs (1)
792
Assembly asm =
FormatterServices
.LoadAssemblyFromStringNoThrow(assemName);
system\runtime\remoting\remotingservices.cs (1)
1375
Assembly assem =
FormatterServices
.LoadAssemblyFromStringNoThrow(assemNamespace);
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (2)
406
assembly =
FormatterServices
.LoadAssemblyFromStringNoThrow(assemblyString);
912
static Object instanceOfVoid =
FormatterServices
.GetUninitializedObject(Converter.typeofSystemVoid);
system\runtime\serialization\formatters\binary\binaryformatter.cs (4)
246
string assemblyName2 =
FormatterServices
.GetClrAssemblyName(t, out hasTypeForwardedFrom2);
247
return new TypeInformation(
FormatterServices
.GetClrTypeFullName(t), assemblyName2, hasTypeForwardedFrom2);
256
string assemblyName =
FormatterServices
.GetClrAssemblyName(type, out hasTypeForwardedFrom);
257
typeInformation = new TypeInformation(
FormatterServices
.GetClrTypeFullName(type), assemblyName, hasTypeForwardedFrom);
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (7)
157
si = new SerializationInfo(objectType, converter, !
FormatterServices
.UnsafeTypeForwardersIsEnabled());
228
si = new SerializationInfo(objectType, converter, !
FormatterServices
.UnsafeTypeForwardersIsEnabled());
308
if (!
FormatterServices
.UnsafeTypeForwardersIsEnabled())
346
cache.memberInfos =
FormatterServices
.GetSerializableMembers(objectType, context);
363
memberData =
FormatterServices
.GetObjectData(obj, cache.memberInfos);
631
cache.memberInfos =
FormatterServices
.GetSerializableMembers(objectType, context);
749
FormatterServices
.PopulateObjectMembers(obj, cache.memberInfos, memberData);
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (9)
462
FormatterServices
.CheckTypeSecurity(t, formatterEnums.FEsecurityLevel);
539
pr.PRnewObj =
FormatterServices
.GetSafeUninitializedObject(pr.PRdtType);
542
pr.PRnewObj =
FormatterServices
.GetUninitializedObject(pr.PRdtType);
976
var =
FormatterServices
.GetSafeUninitializedObject(pr.PRdtType);
979
var =
FormatterServices
.GetUninitializedObject(pr.PRdtType);
1405
type =
FormatterServices
.GetTypeFromAssembly(assm, typeName);
1440
type =
FormatterServices
.GetTypeFromAssembly(assm, typeName);
1483
objectType =
FormatterServices
.GetTypeFromAssembly(sourceAssembly, name);
1504
if ( !
FormatterServices
.UnsafeTypeForwardersIsEnabled() && sourceAssembly != destAssembly )
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (1)
706
FormatterServices
.SerializationSetValue(valueInfo, header, obj);
system\runtime\serialization\formatters\sertrace.cs (2)
117
FormatterServices
.SerializationSetValue(fi, target, value);
123
return
FormatterServices
.LoadAssemblyFromString(assemblyString);
system\runtime\serialization\objectclonehelper.cs (2)
148
MemberInfo[] mi =
FormatterServices
.GetSerializableMembers(serObj.GetType());
169
FormatterServices
.SerializationSetValue(mi[index], serObj, value);
system\runtime\serialization\objectmanager.cs (2)
456
FormatterServices
.SerializationSetValue(memberToFix, fixupObj, value);
607
FormatterServices
.SerializationSetValue(tempMember, holder.ObjectValue, tempObjectHolder.ObjectValue);
system\runtime\serialization\safeserializationmanager.cs (1)
427
object deserialized =
FormatterServices
.GetUninitializedObject(m_realType);
System.Runtime.Serialization (2)
System\Runtime\Serialization\SurrogateDataContract.cs (1)
70
return
FormatterServices
.GetUninitializedObject(objType);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
959
return
FormatterServices
.GetUninitializedObject(DataContract.GetDataContractForInitialization(id).TypeForInitialization);
System.Workflow.ComponentModel (9)
AuthoringOM\Serializer\ActivitySurrogate.cs (6)
42
object[] memberDatas =
FormatterServices
.GetObjectData(obj, members);
252
this.cachedActivity = (Activity)
FormatterServices
.GetUninitializedObject(this.cachedDefinitionActivity.GetType());
270
FormatterServices
.PopulateObjectMembers(this.cachedActivity, members, new object[] { this.memberData, this.disposed });
275
FormatterServices
.PopulateObjectMembers(this.cachedActivity, new MemberInfo[] { members[0] }, new object[] { this.memberData });
280
FormatterServices
.PopulateObjectMembers(this.cachedActivity, new MemberInfo[] { members[1] }, new object[] { this.disposed });
293
FormatterServices
.PopulateObjectMembers(this.cachedActivity, members, currentMemberDatas);
AuthoringOM\Serializer\ActivitySurrogateSelector.cs (3)
133
object[] memberDatas =
FormatterServices
.GetObjectData(obj, members);
163
this.returnedObject =
FormatterServices
.GetUninitializedObject(this.type);
182
FormatterServices
.PopulateObjectMembers(this.returnedObject, members, this.memberDatas);