dotnet / dotnet/dotnet-api-docs

Constructor parameter and null

Open
#1,788 0 comments 0 reactions 0 assignees View on GitHub
area-System.Collections dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Can the constructor parameter dictionary be null. Will the constructor throw?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 3a1d69a0-45da-b27a-5618-14657457905b
* Version Independent ID: b3480f40-ac06-d7c6-8fe5-0dc1ecdc6636
* Content: [ReadOnlyDictionary<TKey,TValue>(IDictionary<TKey,TValue>) Constructor (System.Collections.ObjectModel)](https://docs.microsoft.com/en-us/dotnet/api/system.collections.objectmodel.readonlydictionary-2.-ctor?view=netframework-4.7)
* Content Source: [xml/System.Collections.ObjectModel/ReadOnlyDictionary`2.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Collections.ObjectModel/ReadOnlyDictionary`2.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.