2 writes to cache
mscorlib (2)
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (2)
621
cache
= new SerObjectInfoCache(objectType);
630
cache
= new SerObjectInfoCache(objectType);
42 references to cache
mscorlib (42)
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (42)
631
cache
.memberInfos = FormatterServices.GetSerializableMembers(objectType, context);
632
count =
cache
.memberInfos.Length;
633
cache
.memberNames = new String[count];
634
cache
.memberTypes = new Type[count];
639
cache
.memberNames[i] =
cache
.memberInfos[i].Name;
640
cache
.memberTypes[i] = GetMemberType(
cache
.memberInfos[i]);
641
SerTrace.Log( this, objectInfoId," InitMemberInfo name ",
cache
.memberNames[i],", type ",
cache
.memberTypes[i],", memberInfoType ",
cache
.memberInfos[i].GetType());
653
if (
cache
== null)
657
if (
cache
.memberInfos == null)
661
return
cache
.memberInfos[Position(name)];
676
type =
cache
.memberTypes[position];
716
if (memberData == null &&
cache
!= null)
717
memberData = new Object[
cache
.memberNames.Length];
736
objectManager.RecordFixup(objectId,
cache
.memberInfos[position], idRef);
747
DumpPopulate(
cache
.memberInfos, memberData);
749
FormatterServices.PopulateObjectMembers(obj,
cache
.memberInfos, memberData);
779
if (
cache
== null)
782
if (
cache
.memberNames.Length >0 &&
cache
.memberNames[lastPosition].Equals(name))
786
else if ((++lastPosition <
cache
.memberNames.Length) && (
cache
.memberNames[lastPosition].Equals(name)))
794
for (int i=0; i<
cache
.memberNames.Length; i++)
796
if (
cache
.memberNames[i].Equals(name))
816
if (
cache
== null)
819
if (
cache
.memberTypes == null)
821
cache
.memberTypes = new Type[count];
823
cache
.memberTypes[i] = GetMemberType(
cache
.memberInfos[i]);
828
if (inMemberNames.Length <
cache
.memberInfos.Length)
831
Type[] outMemberTypes = new Type[
cache
.memberInfos.Length];
835
for (int i = 0; i <
cache
.memberInfos.Length; i++)
837
if (!memberMissing && inMemberNames[i].Equals(
cache
.memberInfos[i].Name))
838
outMemberTypes[i] =
cache
.memberTypes[i];
845
if (
cache
.memberInfos[i].Name.Equals(inMemberNames[j]))
847
outMemberTypes[i] =
cache
.memberTypes[i];
848
SerTrace.Log( this,objectInfoId," ", objectType," GetMemberTypes memberName ",
cache
.memberTypes[i]," ",i," memberTypes ",outMemberTypes[j]," ",j);
856
Object [] attrs =
cache
.memberInfos[i].GetCustomAttributes(typeof(OptionalFieldAttribute), false);
859
throw new SerializationException(Environment.GetResourceString("Serialization_MissingMember",
cache
.memberNames[i], objectType, typeof(OptionalFieldAttribute).FullName));