Sicherung

This commit is contained in:
Maier Stephan SI
2023-01-02 04:33:49 +01:00
parent bea46135fd
commit d01747f75a
284 changed files with 6106 additions and 65112 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Config.Net.TypeParsers
{
class StringParser : ITypeParser
{
public IEnumerable<Type> SupportedTypes => new[] { typeof(string) };
public bool TryParse(string? value, Type t, out object? result)
{
result = value;
return value != null;
}
public string? ToRawString(object? value)
{
return value as string;
}
}
}