From 405cd7a86ded8c3198701bc3dcfb23e5c533d411 Mon Sep 17 00:00:00 2001 From: Jeremie Pelletier Date: Tue, 29 Oct 2024 13:36:29 -0400 Subject: [PATCH] Review feedback --- crates/cli/src/subcommands/generate/csharp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/cli/src/subcommands/generate/csharp.rs b/crates/cli/src/subcommands/generate/csharp.rs index 0f75c4b010c..78405aff0d7 100644 --- a/crates/cli/src/subcommands/generate/csharp.rs +++ b/crates/cli/src/subcommands/generate/csharp.rs @@ -411,7 +411,7 @@ fn autogen_csharp_access_funcs_for_struct( indented_block(output, |output| { write!( output, - "internal readonly Dictionary<{csharp_field_type}, {csharp_table_name}> __Cache = new(16);" + "internal readonly Dictionary<{csharp_field_type}, {csharp_table_name}> Cache = new(16);" ); writeln!(output); @@ -420,7 +420,7 @@ fn autogen_csharp_access_funcs_for_struct( "public {struct_name_pascal_case}? Find({csharp_field_type} value)" ); indented_block(output, |output| { - writeln!(output, "__Cache.TryGetValue(value, out var r);"); + writeln!(output, "Cache.TryGetValue(value, out var r);"); writeln!(output, "return r;"); }); writeln!(output); @@ -605,7 +605,7 @@ pub fn autogen_csharp_globals(ctx: &GenCtx, items: &[GenItem], namespace: &str) if !constraints[&ColList::new(col.col_pos)].has_unique() { continue; } - writeln!(output, "{field_name}.__Cache[value.{field_name}] = value;"); + writeln!(output, "{field_name}.Cache[value.{field_name}] = value;"); } }); writeln!(output); @@ -620,7 +620,7 @@ pub fn autogen_csharp_globals(ctx: &GenCtx, items: &[GenItem], namespace: &str) if !constraints[&ColList::new(col.col_pos)].has_unique() { continue; } - writeln!(output, "{field_name}.__Cache.Remove((({table_type})row).{field_name});"); + writeln!(output, "{field_name}.Cache.Remove((({table_type})row).{field_name});"); } }); writeln!(output);