Skip to content

Commit 547d561

Browse files
committed
Working GFLW demo
1 parent 531d7f3 commit 547d561

File tree

4 files changed

+171
-121
lines changed

4 files changed

+171
-121
lines changed

sources/Core/Pointers/Ptr.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,19 @@ public static implicit operator string(Ptr<T> ptr)
170170
/// <inheritdoc />
171171
public override bool Equals(object? obj) => false;
172172

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+
173186
/// <summary>
174187
/// Determines whether the given pointer points to the same location as this pointer.
175188
/// </summary>

0 commit comments

Comments
 (0)