diff --git a/src/api/dotnet/NativeContext.cs b/src/api/dotnet/NativeContext.cs
index 9f285ec84dc..93180e5830b 100644
--- a/src/api/dotnet/NativeContext.cs
+++ b/src/api/dotnet/NativeContext.cs
@@ -1341,13 +1341,13 @@ internal void InitContext()
#region Tracing
///
- /// Enable tracint to file
+ /// Enable trace to file
///
- ///
- public void TraceToFile(string file)
+ /// Tag to trace
+ public static void EnableTrace(string tag)
{
- Debug.Assert(!string.IsNullOrEmpty(file));
- Native.Z3_enable_trace(file);
+ Debug.Assert(!string.IsNullOrEmpty(tag));
+ Native.Z3_enable_trace(tag);
}
#endregion