Title: Refactored variable names and removed unused imports
x) In `Imm.cs`, renamed the delegate parameter from `ZZOld` to `old` for clarity. x) Also in `Imm.cs`, changed the property name from `ZZOld` to `Old_backing`. This change was made across multiple classes within the file, improving code readability by using a more descriptive name. x) In `Log.cs`, removed unused imports (`System.Security.Cryptography.X509Certificates`, `System.Dynamic`, `System.Xml.Schema`, and `Microsoft.CodeAnalysis.CSharp.Syntax`) to clean up the codebase.
This commit is contained in:
parent
9aeac39704
commit
b59baf0239
10
imm/Imm.cs
10
imm/Imm.cs
@ -97,7 +97,7 @@ public record class Versioned<T> : Imm
|
|||||||
where T : Versioned<T>
|
where T : Versioned<T>
|
||||||
{
|
{
|
||||||
|
|
||||||
public delegate void ChangeDelegate( T ZZOld, T next );
|
public delegate void ChangeDelegate( T old, T next );
|
||||||
|
|
||||||
public record class MetaData : Meta
|
public record class MetaData : Meta
|
||||||
{
|
{
|
||||||
@ -191,8 +191,8 @@ public record class Recorded<T> : Versioned<T>, imm.Imm
|
|||||||
new public record class MetaData : Versioned<T>.MetaData
|
new public record class MetaData : Versioned<T>.MetaData
|
||||||
{
|
{
|
||||||
[lib.Dont]
|
[lib.Dont]
|
||||||
public T? ZZOld { get; internal set; }
|
public T? Old_backing { get; internal set; }
|
||||||
public T? Old => ZZOld;
|
public T? Old => Old_backing;
|
||||||
public string DbgName { get; internal set; } = "";
|
public string DbgName { get; internal set; } = "";
|
||||||
public string DbgPath { get; internal set; } = "";
|
public string DbgPath { get; internal set; } = "";
|
||||||
public int DbgLine { get; internal set; } = -1;
|
public int DbgLine { get; internal set; } = -1;
|
||||||
@ -271,7 +271,7 @@ public record class Recorded<T> : Versioned<T>, imm.Imm
|
|||||||
Version = orig.Meta.Version + 1,
|
Version = orig.Meta.Version + 1,
|
||||||
Reason = !string.IsNullOrWhiteSpace( reason ) ? reason : next.Meta.Reason,
|
Reason = !string.IsNullOrWhiteSpace( reason ) ? reason : next.Meta.Reason,
|
||||||
|
|
||||||
ZZOld = orig,
|
Old_backing = orig,
|
||||||
DbgName = dbgName,
|
DbgName = dbgName,
|
||||||
DbgPath = dbgPath,
|
DbgPath = dbgPath,
|
||||||
DbgLine = dbgLine,
|
DbgLine = dbgLine,
|
||||||
@ -386,7 +386,7 @@ public record class Timed<T> : Recorded<T>, imm.Imm
|
|||||||
DbgPath = dbgPath,
|
DbgPath = dbgPath,
|
||||||
DbgLine = dbgLine,
|
DbgLine = dbgLine,
|
||||||
DbgExp = dbgExp,
|
DbgExp = dbgExp,
|
||||||
ZZOld = orig,
|
Old_backing = orig,
|
||||||
|
|
||||||
//Timed
|
//Timed
|
||||||
TouchedAt = DateTime.Now,
|
TouchedAt = DateTime.Now,
|
||||||
|
|||||||
@ -9,11 +9,7 @@ using System.Reflection;
|
|||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Security.Cryptography.X509Certificates;
|
|
||||||
using lib.Net;
|
using lib.Net;
|
||||||
using System.Dynamic;
|
|
||||||
using System.Xml.Schema;
|
|
||||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
//using System.Threading.Tasks;
|
//using System.Threading.Tasks;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user