suremaker / objectserialization-net Goto Github PK
View Code? Open in Web Editor NEWA fast object graph binary serialization for .NET
License: Other
A fast object graph binary serialization for .NET
License: Other
I am getting this exception...
System.Runtime.Serialization.SerializationException: Instance property 'Count' is not defined for type 'System.Collections.Generic.IList1[Microsoft.TeamFoundation.Framework.Server.PropertyValue]' ---> System.ArgumentException: Instance property 'Count' is not defined for type 'System.Collections.Generic.IList1[Microsoft.TeamFoundation.Framework.Server.PropertyValue]' at System.Linq.Expressions.Expression.Property(Expression expression, String propertyName) at ObjectSerialization.Builders.Types.CollectionTypeSerializer.Write(Expression writerObject, Expression value, Type valueType) in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\Builders\Types\CollectionTypeSerializer.cs:line 47 at ObjectSerialization.Builders.TypeMembersSerializerBuilder1.BuildFieldSerializer(FieldInfo field, BuildContext1 ctx) in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\Builders\TypeMembersSerializerBuilder.cs:line 74 at ObjectSerialization.Builders.TypeMembersSerializerBuilder1.Build() in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\Builders\TypeMembersSerializerBuilder.cs:line 56 --- End of inner exception stack trace --- at ObjectSerialization.Builders.TypeMembersSerializerBuilder1.Build() in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\Builders\TypeMembersSerializerBuilder.cs:line 64 at ObjectSerialization.Builders.TypeMembersSerializerBuilder`1.getSerializeFn() in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\Builders\TypeMembersSerializerBuilder.cs:line 33 at lambdamethod(Closure , BinaryWriter , Object ) at lambdamethod(Closure , BinaryWriter , Object ) at lambdamethod(Closure , BinaryWriter , Object ) at ObjectSerialization.ObjectSerializer.Serialize(Stream stream, Object value) in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\ObjectSerializer.cs:line 29 at ObjectSerialization.ObjectSerializer.Serialize(Object value) in d:\dev\dotnet\ObjectSerialization-Net\ObjectSerialization\ObjectSerializer.cs:line 17
while calling using this code
IObjectSerializer serializer = new ObjectSerializer();
byte[] serializedData = serializer.Serialize(buildEvent);
my buildEvent code is an object of a class which is Sealed and it doesn't have a parameterless constructor.
Please help. Thanks
Hi! Can you please release a build for .NET standard, so the compiler won't show a warning like this:
Package 'ObjectSerialization-Net 1.0.27' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.