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

Why is Structure of Type SizeF not supported ? #128

@CanadianHusky

Description

@CanadianHusky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions