Skip to content

Clean up '#if CORE' in ClrFacade.cs#4366

Merged
daxian-dbw merged 1 commit into
PowerShell:masterfrom
iSazonov:cleanup-clrfacade
Jul 28, 2017
Merged

Clean up '#if CORE' in ClrFacade.cs#4366
daxian-dbw merged 1 commit into
PowerShell:masterfrom
iSazonov:cleanup-clrfacade

Conversation

@iSazonov
Copy link
Copy Markdown
Collaborator

Related #4357 and #3565.

@iSazonov iSazonov requested a review from daxian-dbw July 28, 2017 04:48
@iSazonov iSazonov changed the title Clean up '#if CORECLR' in ClrFacade.cs Clean up '#if CORE' in ClrFacade.cs Jul 28, 2017
Marshal.StructureToPtr<T>(structure, ptr, deleteOld);
#else
Marshal.StructureToPtr(structure, ptr, deleteOld);
#endif
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For instances like the above ones, we should make changes in the call sites of those methods to directly use the API available in .NET Core, so that we can completely remove those methods from ClrFacade.cs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can leave them out, and I will clean them up later.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😕 I don't understand this in depth so leave them to you.

@daxian-dbw daxian-dbw self-assigned this Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants