Rename Pin offset to byteOffset and clean up Retain test - #26518
Conversation
| public void Dispose() { } | ||
| protected abstract void Dispose(bool disposing); | ||
| public abstract System.Buffers.MemoryHandle Pin(int offset=0); | ||
| public abstract System.Buffers.MemoryHandle Pin(int byteOffset=0); |
There was a problem hiding this comment.
There aren't spaces around = in most other places within the refs:
https://github.com/dotnet/corefx/blob/master/src/System.Runtime/ref/System.Runtime.cs#L1521
https://github.com/dotnet/corefx/blob/master/src/System.Runtime/ref/System.Runtime.cs#L462
https://github.com/dotnet/corefx/blob/master/src/System.Runtime/ref/System.Runtime.cs#L1480
https://github.com/dotnet/corefx/blob/master/src/System.Memory/ref/System.Memory.cs#L206
But there is some inconsistency:
https://github.com/dotnet/corefx/blob/master/src/System.Buffers/ref/System.Buffers.cs#L16
cc @weshaggard
There was a problem hiding this comment.
Yeah the tool doesn't put spaces around this. Easy to fix if someone want to change it, https://github.com/dotnet/buildtools/blob/master/src/Microsoft.Cci.Extensions/Writers/CSharp/CSDeclarationWriter.Methods.cs#L159
| public void Dispose() { } | ||
| protected abstract void Dispose(bool disposing); | ||
| public abstract MemoryHandle Pin(int offset=0); | ||
| public abstract MemoryHandle Pin(int byteOffset=0); |
cc @atsushikan, @jkotas, @KrzysztofCwalina