From 801a0da615d9c2ade83aaea8497e7d29796c2605 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Fri, 15 Jun 2018 18:32:18 +0200 Subject: [PATCH] Added class for identified strings --- .../DML.Application.csproj | 1 + .../Helper/IdentifiedString.cs | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Discord Media Loader.Application/Helper/IdentifiedString.cs diff --git a/Discord Media Loader.Application/DML.Application.csproj b/Discord Media Loader.Application/DML.Application.csproj index 0e3a4d2..17496c5 100644 --- a/Discord Media Loader.Application/DML.Application.csproj +++ b/Discord Media Loader.Application/DML.Application.csproj @@ -179,6 +179,7 @@ FrmInternalSplash.cs + Form diff --git a/Discord Media Loader.Application/Helper/IdentifiedString.cs b/Discord Media Loader.Application/Helper/IdentifiedString.cs new file mode 100644 index 0000000..828d6cf --- /dev/null +++ b/Discord Media Loader.Application/Helper/IdentifiedString.cs @@ -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 + { + 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; + } +}