forked from dotnet/project-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdvBuildSettingsPropPage.ComboItem.vb
49 lines (36 loc) · 1.41 KB
/
AdvBuildSettingsPropPage.ComboItem.vb
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
' Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information.
Namespace Microsoft.VisualStudio.Editors.PropertyPages
Partial Friend Class AdvBuildSettingsPropPage
Private Class ComboItem
''' <summary>
''' Stores the property value
''' </summary>
Private ReadOnly _value As String
''' <summary>
''' Stores the display name
''' </summary>
Private ReadOnly _displayName As String
''' <summary>
''' Constructor that uses the provided value and display name
''' </summary>
Friend Sub New(value As String, displayName As String)
_value = value
_displayName = displayName
End Sub
''' <summary>
''' Gets the value
''' </summary>
Public ReadOnly Property Value As String
Get
Return _value
End Get
End Property
''' <summary>
''' Use the display name for the string display
''' </summary>
Public Overrides Function ToString() As String
Return _displayName
End Function
End Class
End Class
End Namespace