Added class for identified strings
This commit is contained in:
parent
00fa678271
commit
801a0da615
|
@ -179,6 +179,7 @@
|
||||||
<Compile Include="FrmInternalSplash.Designer.cs">
|
<Compile Include="FrmInternalSplash.Designer.cs">
|
||||||
<DependentUpon>FrmInternalSplash.cs</DependentUpon>
|
<DependentUpon>FrmInternalSplash.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Helper\IdentifiedString.cs" />
|
||||||
<Compile Include="MainForm.cs">
|
<Compile Include="MainForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
22
Discord Media Loader.Application/Helper/IdentifiedString.cs
Normal file
22
Discord Media Loader.Application/Helper/IdentifiedString.cs
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DML.Application.Helper
|
||||||
|
{
|
||||||
|
internal class IdentifiedString<T>
|
||||||
|
{
|
||||||
|
internal T Id { get; set; }
|
||||||
|
internal string Caption { get; set; }
|
||||||
|
|
||||||
|
internal IdentifiedString(T id, string caption)
|
||||||
|
{
|
||||||
|
Id = id;
|
||||||
|
Caption = caption;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string ToString() => Caption;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue