From 58d5b7838a48a422b18a1500655d46309b91c992 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 10 Nov 2007 12:29:17 +0000 Subject: [PATCH] Fixed mismatch between Delegate and Import declarations. --- Source/Bind/Structures/Delegate.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Bind/Structures/Delegate.cs b/Source/Bind/Structures/Delegate.cs index af96b4d1..702d8be1 100644 --- a/Source/Bind/Structures/Delegate.cs +++ b/Source/Bind/Structures/Delegate.cs @@ -280,6 +280,10 @@ namespace Bind.Structures #endregion + /// + /// Returns a string representing the full non-delegate declaration without decorations. + /// (ie "(unsafe) void glXxxYyy(int a, float b, IntPtr c)" + /// #region public string DeclarationString() public string DeclarationString() @@ -290,7 +294,7 @@ namespace Bind.Structures sb.Append(ReturnType); sb.Append(" "); sb.Append(Name); - sb.Append(Parameters.ToString()); + sb.Append(Parameters.ToString(true)); return sb.ToString(); } @@ -300,8 +304,8 @@ namespace Bind.Structures #region override public string ToString() /// - /// Gets the string representing the full function declaration without decorations - /// (ie "void glClearColor(float red, float green, float blue, float alpha)" + /// Returns a string representing the full delegate declaration without decorations. + /// (ie "(unsafe) void delegate glXxxYyy(int a, float b, IntPtr c)" /// override public string ToString() {