dotnet-installer/src/Microsoft.DotNet.ProjectModel/Graph/LockFileItem.cs

21 lines
684 B
C#
Raw Normal View History

// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
namespace Microsoft.DotNet.ProjectModel.Graph
{
public class LockFileItem
{
public string Path { get; set; }
public IDictionary<string, string> Properties { get; } = new Dictionary<string, string>();
public static implicit operator string (LockFileItem item) => item.Path;
public static implicit operator LockFileItem(string path) => new LockFileItem { Path = path };
public override string ToString() => Path;
}
}