From f06041cc4f73901e258633f08b6082f49a13256b Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Wed, 29 Jan 2025 17:14:18 +0000 Subject: [PATCH] Typo. Only throw assertions at Debug time. Signed-off-by: Konstantina Chremmou --- ocaml/sdk-gen/csharp/autogen/src/XenRef.cs | 2 +- ocaml/sdk-gen/csharp/gen_csharp_binding.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocaml/sdk-gen/csharp/autogen/src/XenRef.cs b/ocaml/sdk-gen/csharp/autogen/src/XenRef.cs index d71646a2974..7c0697b1498 100644 --- a/ocaml/sdk-gen/csharp/autogen/src/XenRef.cs +++ b/ocaml/sdk-gen/csharp/autogen/src/XenRef.cs @@ -43,7 +43,7 @@ public partial class XenRef where T : XenObject /// May not be null. public XenRef(string opaqueRef) { - System.Diagnostics.Trace.Assert(opaqueRef != null, "'opaqueRef' parameter must not be null"); + System.Diagnostics.Debug.Assert(opaqueRef != null, "'opaqueRef' parameter must not be null"); this.opaqueRef = opaqueRef; } diff --git a/ocaml/sdk-gen/csharp/gen_csharp_binding.ml b/ocaml/sdk-gen/csharp/gen_csharp_binding.ml index c9112b680e3..e01780d751a 100644 --- a/ocaml/sdk-gen/csharp/gen_csharp_binding.ml +++ b/ocaml/sdk-gen/csharp/gen_csharp_binding.ml @@ -1186,7 +1186,7 @@ and json_serialization_attr fr = sprintf "\n [JsonConverter(typeof(StringStringMapConverter))]" | Map (Ref u, Set String) -> sprintf - "\n [JsonConverer(typeof(XenRefStringSetMapConverter<%s>))]" + "\n [JsonConverter(typeof(XenRefStringSetMapConverter<%s>))]" (exposed_class_name u) | Map (Ref _, _) | Map (_, Ref _) -> failwith (sprintf "Need converter for %s" fr.field_name)