diff --git a/src/Generator/Generators/CLI/CLIMarshal.cs b/src/Generator/Generators/CLI/CLIMarshal.cs index 5d54d878ca..76babc78ce 100644 --- a/src/Generator/Generators/CLI/CLIMarshal.cs +++ b/src/Generator/Generators/CLI/CLIMarshal.cs @@ -700,7 +700,7 @@ private void MarshalRefClass(Class @class) Context.SupportBefore.WriteLine("if (ReferenceEquals({0}, nullptr))", Context.Parameter.Name); Context.SupportBefore.WriteLineIndent( "throw gcnew ::System::ArgumentNullException(\"{0}\", " + - "\"{0} cannot be null because it is a C++ reference (&).\");", + "\"Cannot be null because it is a C++ reference (&).\");", Context.Parameter.Name); } diff --git a/src/Generator/Generators/CSharp/CSharpMarshal.cs b/src/Generator/Generators/CSharp/CSharpMarshal.cs index 9618b0123d..58b5533f55 100644 --- a/src/Generator/Generators/CSharp/CSharpMarshal.cs +++ b/src/Generator/Generators/CSharp/CSharpMarshal.cs @@ -674,7 +674,7 @@ private void MarshalRefClass(Class @class) Context.SupportBefore.WriteLine("if (ReferenceEquals({0}, null))", param); Context.SupportBefore.WriteLineIndent( "throw new global::System.ArgumentNullException(\"{0}\", " + - "\"{0} cannot be null because it is a C++ reference (&).\");", + "\"Cannot be null because it is a C++ reference (&).\");", param); } Context.Return.Write("{0}.{1}", param, Helpers.InstanceIdentifier);