mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-01-27 01:20:39 +00:00
stats
This commit is contained in:
27
Esiur/Data/ResourceLinkGeneric.cs
Normal file
27
Esiur/Data/ResourceLinkGeneric.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Esiur.Data
|
||||
{
|
||||
public class ResourceLink<T>
|
||||
{
|
||||
readonly string value;
|
||||
|
||||
public ResourceLink(string value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
public static implicit operator string(ResourceLink<T> d)
|
||||
{
|
||||
return d.value;
|
||||
}
|
||||
public static implicit operator ResourceLink<T>(string d)
|
||||
{
|
||||
return new ResourceLink<T>(d);
|
||||
}
|
||||
|
||||
public override string ToString() => value;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user