We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531d7f3 commit 547d561Copy full SHA for 547d561
sources/Core/Pointers/Ptr.cs
@@ -170,6 +170,19 @@ public static implicit operator string(Ptr<T> ptr)
170
/// <inheritdoc />
171
public override bool Equals(object? obj) => false;
172
173
+ /// <inheritdoc />
174
+ public override string ToString()
175
+ {
176
+ if (typeof(T) != typeof(byte) && typeof(T) != typeof(sbyte) && typeof(T) != typeof(char) &&
177
+ typeof(T) != typeof(short) && typeof(T) != typeof(ushort) && typeof(T) != typeof(int) &&
178
+ typeof(T) != typeof(uint))
179
180
+ return typeof(Ptr<>).MakeGenericType(typeof(T)).ToString();
181
+ }
182
+
183
+ return this;
184
185
186
/// <summary>
187
/// Determines whether the given pointer points to the same location as this pointer.
188
/// </summary>
0 commit comments