Exemple #1
0
 public object AutoReadValue(XlBinaryReader Reader, object TargetObject, MemberInfo member)
 {
     if (!this.IsArray)
     {
         Type type = ReflectionHelper.GetTypeOf(member);
         return(Reader.Read(type));
     }
     else
     {
         var  arraySize   = this.CalculateArraySize(TargetObject, member);
         Type type        = ReflectionHelper.GetTypeOf(member);
         Type elementType = type.GetElementType();
         return(Reader.ReadArray(elementType, arraySize));
     }
 }