add version 0.0.1

This commit is contained in:
2023-02-26 19:03:30 +01:00
parent cedb0bda76
commit 9da07371e9
39 changed files with 2226 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
using System.Linq;
namespace ResourceString.Net.Logic.DomainObjects.Resx;
internal record File
{
public File(IEnumerable<Resource> resources)
{
Resources = new Seq<Resource>(
resources?.Where(o => o != null) ?? Enumerable.Empty<Resource>()
);
}
public IEnumerable<Resource> Resources { get; }
}

View File

@@ -0,0 +1,18 @@
namespace ResourceString.Net.Logic.DomainObjects.Resx;
internal record Resource
{
public Resource(string name, string value)
{
Name = name ?? string.Empty;
Value = value ?? string.Empty;
}
public string Name { get;}
public Option<string> Type { get; init;}
public Option<string> Comment { get; init;}
public string Value { get; }
}