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)