add version 0.0.1
This commit is contained in:
16
ResourceString.Net.Logic/DomainObjects/Resx/File.cs
Normal file
16
ResourceString.Net.Logic/DomainObjects/Resx/File.cs
Normal 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; }
|
||||
}
|
||||
18
ResourceString.Net.Logic/DomainObjects/Resx/Resource.cs
Normal file
18
ResourceString.Net.Logic/DomainObjects/Resx/Resource.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user