Skip to content

Why do we need throw null in src/libraries/System.Collections/ref and that folder in general? #66701

Answered by EgorBo
B1Z0N asked this question in Q&A
Discussion options

You must be logged in to vote

/ref is auto-generated tiny facades. They are used in order to produce small-sized referenced assemblies needed for faster compilation - they're not used during the actual application run.

throw null is basically a universal way to implement a method body - it's never invoked in practice.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@B1Z0N
Comment options

@bartonjs
Comment options

Answer selected by B1Z0N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants