添加项目文件。
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FileService.Domain.ValueObjects
|
||||
{
|
||||
public class CheckSum
|
||||
{
|
||||
public string Algorithm { get; }
|
||||
public string Value { get; }
|
||||
|
||||
public CheckSum(string algorithm, string value)
|
||||
{
|
||||
Algorithm = algorithm;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Value;
|
||||
}
|
||||
|
||||
public static implicit operator CheckSum((string algorithm, string value) value)
|
||||
{
|
||||
return new CheckSum(value.algorithm, value.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user