-
Notifications
You must be signed in to change notification settings - Fork 365
/
SpecializedMemberWithParametersReference.cs
66 lines (56 loc) · 2.42 KB
/
SpecializedMemberWithParametersReference.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright © Microsoft Corporation.
// This source file is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
// Change History
// 12/26/2012 - EFW - Moved the classes into the Targets namespace
// 12/30/2012 - EFW - Cleaned up the code and marked the class as serializable
using System;
using System.Collections.Generic;
namespace Sandcastle.Tools.BuildComponents.Targets
{
/// <summary>
/// This represents a specialized member with parameters reference
/// </summary>
[Serializable]
public sealed class SpecializedMemberWithParametersReference : MemberReference
{
#region Properties
//=====================================================================
/// <summary>
/// This read-only property returns the prefix
/// </summary>
public string Prefix { get; }
/// <summary>
/// This read-only property returns the specialized type
/// </summary>
public SpecializedTypeReference SpecializedType { get; }
/// <summary>
/// This read-only property returns the member name
/// </summary>
public string MemberName { get; }
/// <summary>
/// This read-only property returns the parameter types
/// </summary>
public IList<TypeReference> ParameterTypes { get; }
#endregion
#region Constructor
//=====================================================================
/// <summary>
/// Constructor
/// </summary>
/// <param name="prefix">The prefix</param>
/// <param name="specializedType">The specialized type</param>
/// <param name="memberName">The member name</param>
/// <param name="parameters">The parameters</param>
public SpecializedMemberWithParametersReference(string prefix, SpecializedTypeReference specializedType,
string memberName, IList<TypeReference> parameters)
{
this.Prefix = prefix;
this.SpecializedType = specializedType ?? throw new ArgumentNullException(nameof(specializedType));
this.MemberName = memberName;
this.ParameterTypes = parameters ?? throw new ArgumentNullException(nameof(parameters));
}
#endregion
}
}