-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAssemblyCFEnvironment.cs
More file actions
39 lines (35 loc) · 1.22 KB
/
AssemblyCFEnvironment.cs
File metadata and controls
39 lines (35 loc) · 1.22 KB
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
//*****************************************************************************
//* Code Factory SDK
//* Copyright (c) 2022 CodeFactory, LLC
//*****************************************************************************
using System;
namespace CodeFactory.VisualStudio
{
/// <summary>
/// Assembly attribute that tracks the CodeFactory environment that this library runs in.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly)]
public class AssemblyCFEnvironment:Attribute
{
/// <summary>
/// Backing field for the value property.
/// </summary>
private readonly string _value;
/// <summary>
/// The value assigned to the assembly attribute.
/// </summary>
public string Value => _value;
/// <summary>
/// Initializes a new instance of the attribute with no data.
/// </summary>
public AssemblyCFEnvironment():this(""){}
/// <summary>
/// Initializes a new instance of the attribute.
/// </summary>
/// <param name="value">The type of CodeFactory library being created.</param>
public AssemblyCFEnvironment(string value)
{
_value = value;
}
}
}