-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically port Reflection.PortableExecutable.PE* APIs #3193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a number of suggestions and comments about the first two files in your PR, @carlossanlop. I'll do the remainder separately.
@@ -86,7 +86,15 @@ | |||
<Docs> | |||
<summary>To be added.</summary> | |||
<value>To be added.</value> | |||
<remarks>To be added.</remarks> | |||
<remarks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the documentation appears in the Remarks section, with nothing in the Summary section. Should they be moved the the summary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done @rpetrusha. Let me know what you think.
I double checked the descriptions in these two sites:
https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-imagedirectoryentrytodata
https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-imagedirectoryentrytodataex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to add cross references?
@@ -44,9 +44,17 @@ | |||
<ReturnType>System.Int32</ReturnType> | |||
</ReturnValue> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we provide a summary? Something like "Represents the header of a Portable Executable (PE) file."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmat does this summary look good to you or would you prefer a different description?
|
||
## Remarks | ||
|
||
Represents `IMAGE_DIRECTORY_ENTRY_TLS`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remarks without summary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some additional comments/suggestions.
@@ -75,8 +75,9 @@ | |||
<param name="sizeOfStackCommit">To be added.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This needs a type summary. Perhaps, "Defines the header for a portable executable (PE) file."
- Can we provide descriptions for the constructor's parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmat do you agree with the proposed summary?
Sure @rpetrusha I'll complete the constructors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional changes up to the PEReader.GetSectionData method.
@@ -458,9 +575,13 @@ | |||
</Parameters> | |||
<Docs> | |||
<param name="entry">To be added.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we provide parameter and return value descriptions here?
I've finished reviewing this PR, @carlossanlop. I should have just made the edits directly, but unfortunately I only did that in some cases, and largely left suggestions for the remaining changes. |
Hey @tmat we need your help again. Here is your PR that introduced them: dotnet/corefx#5354 |
@@ -17,7 +17,7 @@ | |||
</Base> | |||
<Interfaces /> | |||
<Docs> | |||
<summary>To be added.</summary> | |||
<summary>Builds PE directories.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmat I added this but I don't think it's descriptive enough. Can you please provide a better summary?
xml/System.Reflection.PortableExecutable/PEDirectoriesBuilder.xml
Outdated
Show resolved
Hide resolved
Co-Authored-By: Ron Petrusha <[email protected]>
Co-Authored-By: Ron Petrusha <[email protected]>
xml/System.Reflection.PortableExecutable/PEDirectoriesBuilder.xml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering wheether all the "Represents IMAGE_DIRECTORY_ENTRY_*
" remarks should be links to some specification. These remarks do not seem to have sufficient context, but perhaps a PE/COFF expert would immediately understand them.
@@ -86,7 +86,15 @@ | |||
<Docs> | |||
<summary>To be added.</summary> | |||
<value>To be added.</value> | |||
<remarks>To be added.</remarks> | |||
<remarks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to add cross references?
@carlossanlop, do you want to address the comments from @sdmaclea, or is this ready to merge? |
@rpetrusha, let's get this merged. We can add cross references later. |
Sounds good, @carlossanlop. I'll merge now. |
No description provided.