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

Attribute decorate existing classes at runtime / Run with no decoration. #122

Open
AnudeepGarge opened this issue Jul 23, 2020 · 0 comments

Comments

@AnudeepGarge
Copy link

AnudeepGarge commented Jul 23, 2020

I have the following schema in my existing project.

[Serializable]
public class Message {
public virtual string Type {get; set;}
}
[Serializable]
class ByteMessage : Message {
public byte[] Prop2 {get;set;}
}

public class StringMessage : Message {
public string Prop3 {get; set;}
}
and 1000 of classes like this.

Currently using BinaryFormatter successfully, but lately I am seeing lot of performance issues and came across this wonderful library.
Is there a way I can continue without decorating [ZeroFormattable] and [Index] attribute?
What would be the best way to migrate all DTO types efficiently?
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