More things that cant be serdeser
This commit is contained in:
parent
7abfe28e9b
commit
f310982890
@ -171,11 +171,13 @@ public record class Versioned<T> : Obj<T> where T : Versioned<T>
|
||||
public Metadata_Versioned Meta { get; init; } = new();
|
||||
|
||||
[DebuggerBrowsable( DebuggerBrowsableState.Never )]
|
||||
[JsonIgnore]
|
||||
public ChangeDelegate<T> OnChange { get; set; } = ( o, n ) => { };
|
||||
|
||||
public virtual Obj? Old => null;
|
||||
|
||||
Metadata_Versioned Obj.Meta => this.Meta;
|
||||
[JsonIgnore]
|
||||
Obj? Obj.Old => this.Old;
|
||||
|
||||
public Versioned() { }
|
||||
@ -235,6 +237,8 @@ public record class Versioned<T> : Obj<T> where T : Versioned<T>
|
||||
public record class Recorded<T> : Versioned<T> where T : Recorded<T>
|
||||
{
|
||||
new public Metadata_Recorded Meta { get; init; } = new();
|
||||
|
||||
[JsonIgnore]
|
||||
new public T? Old => Meta.OldObject as T;
|
||||
|
||||
//public override Obj? Old => this.Old;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user