-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ObjectReader.Create(List(of Object)) fails #67
Comments
What behaviour would you expect in this scenario? Object has zero public
readable properties, etc...
…On Tue, 8 Jan 2019, 18:52 danj1980 ***@***.*** wrote:
Works great when I pass List(Of StronglyTypedObjectClass).
But when I pass a List(Of Object), it fails to return valid content and
doesn't throw any exceptions, such as a NotSupportedException.
Dim NewCDRs As New List(Of object)
Dim NewCDR As New CustomerContractCall
NewCDR.Property1 = something
NewCDRs.Add(NewCDR)
Dim Reader = FastMember.ObjectReader.Create(NewCDRs)
If Reader.FieldCount = 0 Then
Throw New System.Exception("This shouldn't happen")
End If
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#67>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsJoiVV3V9HWEDiH4kw6L8ATjL3bEks5vBOjogaJpZM4Z2EQN>
.
|
For background, here is how I'm using it... I've since discovered that, since I'm passing in the Type of objects that the function should submit, I can use
Unless there is a case where ObjectReader would be successfully used with Object, I was expecting that |
Works great when I pass
List(Of StronglyTypedObjectClass)
.But when I pass a
List(Of Object)
, it fails to return valid content and doesn't throw any exceptions, such as aNotSupportedException
.The text was updated successfully, but these errors were encountered: