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

Hide and warn about TaskItem ctor #10713

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Utilities/TaskItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
#if FEATURE_SECURITY_PERMISSIONS
using System.Security;
Expand Down Expand Up @@ -60,8 +61,12 @@ public sealed class TaskItem :
#region Constructors

/// <summary>
/// Default constructor -- we need it so this type is COM-createable.
/// Default constructor -- do not use.
/// </summary>
/// <remarks>
/// This constructor exists only so that the type is COM-creatable. Prefer <see cref="TaskItem(string)"/>.
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
public TaskItem()
{
_itemSpec = string.Empty;
Expand Down