Interfaces: Add FileTooBig Error, Add note about future refactoring of GetPropertyValue
This commit is contained in:
parent
f6acae9185
commit
9fe177abd3
@ -34,6 +34,7 @@ Public Class ZUGFeRDInterface
|
||||
NoValidZugferd
|
||||
MissingProperties
|
||||
UnsupportedFormat
|
||||
FileTooBig
|
||||
UnknownError
|
||||
End Enum
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user