1 write to _serializationConstructor
System.Data.Entity (1)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1581
_serializationConstructor
= _baseClrType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }, null);
7 references to _serializationConstructor
System.Data.Entity (7)
System\Data\Objects\Internal\EntityProxyFactory.cs (7)
1583
_canOverride =
_serializationConstructor
!= null && (
_serializationConstructor
.IsPublic ||
_serializationConstructor
.IsFamily ||
_serializationConstructor
.IsFamilyOrAssembly);
1586
Debug.Assert(!(_canOverride && (_getObjectDataMethod == null ||
_serializationConstructor
== null)), "Both GetObjectData method and Serialization Constructor must be present when proxy overrides ISerializable implementation.");
1663
constructorAttributes |=
_serializationConstructor
.IsPublic? MethodAttributes.Public : MethodAttributes.Private;
1674
generator.Emit(OpCodes.Call,
_serializationConstructor
);