2015-11-16 11:21:57 -08:00
|
|
|
|
// 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.
|
2015-10-13 14:31:29 -07:00
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2015-11-27 16:19:54 -08:00
|
|
|
|
namespace Microsoft.DotNet.ProjectModel.Graph
|
2015-10-13 14:31:29 -07:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|