Skip to content
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

Allow field layout to be determined for more types #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 18, 2017

  1. Allow field layout to be determined for more types.

    Use the FormatterServices.GetUninitializedObject() method to get an
    instance of a specified type without having to invoke one of the ctors
    for the type; this allows the field layout to be determined for a wider
    set of types, e.g., types whose ctors check-then-throw for null
    arguments. An additional benefit of this change is that because the
    ctors for those types are no longer run, they no longer raise
    exceptions which cause the VS debugger to break (pause execution).
    jack-pappas committed Jun 18, 2017
    Configuration menu
    Copy the full SHA
    d12d60b View commit details
    Browse the repository at this point in the history