Skip to content

Commit 6f58f80

Browse files
committed
Added method ToString in pointer
1 parent 33c2e09 commit 6f58f80

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

DotnetNativeBase/DotnetNativeBase.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@
1111
<PackageProjectUrl>https://github.com/DotnetNative/DotnetNativeBase</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/DotnetNative/DotnetNativeBase</RepositoryUrl>
1313
<PackageTags>naot korn dnb native</PackageTags>
14-
<Version>1.0.0</Version>
14+
<Version>1.0.1</Version>
1515
<Platforms>AnyCPU;x64</Platforms>
1616
<PackageReadmeFile>Pack.md</PackageReadmeFile>
1717
</PropertyGroup>
1818

19+
<ItemGroup>
20+
<None Include="..\Pack.md">
21+
<Pack>True</Pack>
22+
<PackagePath>\</PackagePath>
23+
</None>
24+
</ItemGroup>
25+
1926
<ItemGroup>
2027
<Using Include="System.Runtime.InteropServices" />
2128
</ItemGroup>

DotnetNativeBase/pointer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ public unsafe struct pointer
2929
public static implicit operator nuint*(pointer pointer) => (nuint*)pointer.Address;
3030

3131
public static implicit operator delegate* unmanaged<void>(pointer pointer) => (delegate* unmanaged<void>)pointer;
32+
33+
public override string ToString() => $"0x{Address:X}";
3234
}

0 commit comments

Comments
 (0)