-
Notifications
You must be signed in to change notification settings - Fork 218
/
Dependency.cs
37 lines (32 loc) · 1.01 KB
/
Dependency.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.VisualStudio.Web.CodeGeneration.Contracts.ProjectModel
{
/// <summary>
/// Represents a dependency.
/// </summary>
public class Dependency
{
/// <summary/>
/// <param name="name">Name of the dependency.</param>
/// <param name="version">Version of the dependency.</param>
public Dependency(string name, string version)
{
if (string.IsNullOrEmpty(name))
{
throw new ArgumentNullException(nameof(name));
}
Name = name;
Version = version;
}
/// <summary>
/// Name of the dependency.
/// </summary>
public string Name { get; }
/// <summary>
/// Version of the dependency.
/// </summary>
public string Version { get; }
}
}