Fixed mismatch between Delegate and Import declarations.

This commit is contained in:
the_fiddler 2007-11-10 12:29:17 +00:00
parent 6c86f654ed
commit 2ed4b0066b

View file

@ -280,6 +280,10 @@ namespace Bind.Structures
#endregion #endregion
/// <summary>
/// Returns a string representing the full non-delegate declaration without decorations.
/// (ie "(unsafe) void glXxxYyy(int a, float b, IntPtr c)"
/// </summary>
#region public string DeclarationString() #region public string DeclarationString()
public string DeclarationString() public string DeclarationString()
@ -290,7 +294,7 @@ namespace Bind.Structures
sb.Append(ReturnType); sb.Append(ReturnType);
sb.Append(" "); sb.Append(" ");
sb.Append(Name); sb.Append(Name);
sb.Append(Parameters.ToString()); sb.Append(Parameters.ToString(true));
return sb.ToString(); return sb.ToString();
} }
@ -300,8 +304,8 @@ namespace Bind.Structures
#region override public string ToString() #region override public string ToString()
/// <summary> /// <summary>
/// Gets the string representing the full function declaration without decorations /// Returns a string representing the full delegate declaration without decorations.
/// (ie "void glClearColor(float red, float green, float blue, float alpha)" /// (ie "(unsafe) void delegate glXxxYyy(int a, float b, IntPtr c)"
/// </summary> /// </summary>
override public string ToString() override public string ToString()
{ {