protected internal override void Initialize(IntermediateSerializer serializer) { if (base.TargetType.BaseType != null) { this.baseSerializer = serializer.GetTypeSerializer(base.TargetType.BaseType); } MemberHelperBase <IntermediateSerializer> .CreateMemberHelpers <ReflectiveSerializerMemberHelper>(serializer, base.TargetType, this.memberHelpers); if (CollectionUtils.IsCollection(base.TargetType, false)) { this.collectionHelper = serializer.GetCollectionHelper(base.TargetType); } object[] customAttributes = base.TargetType.GetCustomAttributes(typeof(ContentSerializerCollectionItemNameAttribute), true); if (customAttributes.Length == 1) { this.collectionItemName = ((ContentSerializerCollectionItemNameAttribute)customAttributes[0]).CollectionItemName; } }
protected internal override void Initialize(IntermediateSerializer serializer) { this.arrayHelper = serializer.GetCollectionHelper(typeof(T[])); this.listHelper = serializer.GetCollectionHelper(typeof(List <T>)); }