More things that cant be serdeser
This commit is contained in:
parent
7abfe28e9b
commit
f310982890
@ -170,12 +170,14 @@ public record class Versioned<T> : Obj<T> where T : Versioned<T>
|
||||
{
|
||||
public Metadata_Versioned Meta { get; init; } = new();
|
||||
|
||||
[DebuggerBrowsable( DebuggerBrowsableState.Never )]
|
||||
[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;
|
||||
@ -356,4 +360,4 @@ public static class TimedExt
|
||||
obj = obj.Process( fn, reason, dbgName, dbgPath, dbgLine, dbgExpression );
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user