Skip to content

Commit

Permalink
DR: Require value type base data type (#321)
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Fitié <[email protected]>
  • Loading branch information
jfitie authored Nov 24, 2023
1 parent 95d75d5 commit 41fc1f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DBMDataRef/DBMDataRef.vb
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ Namespace Vitens.DynamicBandwidthMonitor
Private Function ConfigurationIsValid As Boolean

' Check if this attribute is properly configured. The attribute and it's
' parent (input source) need to be an instance of an object, and the data
' type for both needs to be a double.
' parent (input source) need to be an instance of an object, and the base
' data type for both needs to be a value type.

Return Attribute IsNot Nothing AndAlso
Attribute.Type Is GetType(Double) AndAlso
Attribute.Type.BaseType Is GetType(ValueType) AndAlso
Attribute.Parent IsNot Nothing AndAlso
Attribute.Parent.Type Is GetType(Double)
Attribute.Parent.Type.BaseType Is GetType(ValueType)

End Function

Expand Down

0 comments on commit 41fc1f9

Please sign in to comment.