Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Why is Structure of Type SizeF not supported ? #128

Open
CanadianHusky opened this issue Mar 25, 2021 · 0 comments
Open

Why is Structure of Type SizeF not supported ? #128

CanadianHusky opened this issue Mar 25, 2021 · 0 comments

Comments

@CanadianHusky
Copy link

Hello,

Readme at (https://github.com/neuecc/ZeroFormatter#built-in-support-types) says

All primitives, All enums,...

Sample Class with attributes

<Serializable(), ZeroFormattable()> Public Class MyCustomType
    <Index(0)>
    Public Overridable Property Pagesize As SizeF

    <Index(1)>
    Public Overridable Property ListOfSizeF As List(Of SizeF)
End Class

Why am I geting this Exception ? SizeF is a fairly common Structure. Is there any intention of Supporting common .NET Structure Types Build-in, without manually registering as explained here https://github.com/neuecc/ZeroFormatter#extensibility

Exception thrown: 'System.InvalidOperationException' in ZeroFormatter.dll
System.InvalidOperationException: Type is not supported, occurs invalid error: List`1 InnerException:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Type is not supported, occurs invalid error: MyCustomType InnerException:System.InvalidOperationException: Type is not supported, please register SizeF
   at ZeroFormatter.Formatters.DynamicObjectDescriptor.VerifyMember(Type resolverType, EmittableMemberInfo info)....

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant