Interfaces: Add FileTooBig Error, Add note about future refactoring of GetPropertyValue

This commit is contained in:
Jonathan Jenne 2023-02-23 16:23:26 +01:00
parent f6acae9185
commit 9fe177abd3
2 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Public Class ZUGFeRDInterface
NoValidZugferd
MissingProperties
UnsupportedFormat
FileTooBig
UnknownError
End Enum

View File

@ -239,6 +239,12 @@ Public Class PropertyValues
Obj = oInfo.GetValue(Obj, Nothing)
' TODO: This code should check for array properties by itself
' and should not rely on the user to
'If oInfo.PropertyType.IsArray Then
' Obj = Obj(0)
'End If
If oHasIndex Then
Obj = Obj(0)
End If
@ -264,6 +270,8 @@ Public Class PropertyValues
Return oResults
End If
Next
Return New List(Of Object) From {Obj}