dotnet / dotnet/dotnet-api-docs
Exception when assigning null or a zero-length array
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
From ReferenceSource:
https://referencesource.microsoft.com/#System.Drawing/commonui/System/Drawing/Pen.cs,588b553235868dc5
if (value == null || value.Length == 0) {
throw new ArgumentException(SR.GetString(SR.InvalidDashPattern));
}
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 8caf9398-74c6-b8d1-21ba-c1d2d2b3e4d6
* Version Independent ID: f1f3cdfd-c8a9-b1fd-9988-51258c7f8449
* Content: [Pen.DashPattern Property (System.Drawing)](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.pen.dashpattern?view=netframework-4.7.2)
* Content Source: [xml/System.Drawing/Pen.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Drawing/Pen.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.