ZeroFormatter icon indicating copy to clipboard operation
ZeroFormatter copied to clipboard

Why is Structure of Type SizeF not supported ?

Open CanadianHusky opened this issue 4 years ago • 0 comments

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

CanadianHusky avatar Mar 25 '21 15:03 CanadianHusky