1 instantiation of TaskItem
Microsoft.Build.Framework (1)
TaskItem_T.cs (1)
191
public static implicit operator TaskItem<T>(T value) => new
TaskItem
<T>(value);
18 references to TaskItem
Microsoft.Build (3)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
764
|| TaskParameterTypeVerifier.IsPathLikeTaskItemOfT(parameterType, typeof(
TaskItem
<>).FullName);
768
/// <see cref="
TaskItem
{T}"/>, keyed by the generic argument T. Building the closed generic type and
782
ConstructorInfo constructor = typeof(
TaskItem
<>).MakeGenericType(t).GetConstructor([typeof(ITaskItem)]);
Microsoft.Build.Framework (15)
TaskItem_T.cs (15)
21
public readonly struct TaskItem<T> : ITaskItem<T>, IEquatable<
TaskItem
<T>>
31
/// Initializes a new instance of <see cref="
TaskItem
{T}"/> from a strongly-typed value.
44
/// Initializes a new instance of <see cref="
TaskItem
{T}"/> from an <see cref="ITaskItem"/>.
164
public bool Equals(
TaskItem
<T> other) =>
168
public override bool Equals(object? obj) => obj is
TaskItem
<T> other && Equals(other);
174
/// Determines whether two <see cref="
TaskItem
{T}"/> instances are equal.
176
public static bool operator ==(
TaskItem
<T> left,
TaskItem
<T> right) => left.Equals(right);
179
/// Determines whether two <see cref="
TaskItem
{T}"/> instances are not equal.
181
public static bool operator !=(
TaskItem
<T> left,
TaskItem
<T> right) => !left.Equals(right);
184
/// Implicitly converts a <see cref="
TaskItem
{T}"/> to its strongly-typed value.
186
public static implicit operator T(
TaskItem
<T> taskItem) => taskItem.Value;
189
/// Implicitly converts a strongly-typed value to a <see cref="
TaskItem
{T}"/>.
191
public static implicit operator
TaskItem
<T>(T value) => new TaskItem<T>(value);