You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
407 B
16 lines
407 B
namespace StabilityMatrix.Core.Models.Base; |
|
|
|
/// <summary> |
|
/// Base class for a string value object |
|
/// </summary> |
|
/// <param name="Value">String value</param> |
|
public abstract record StringValue(string Value) |
|
{ |
|
/// <inheritdoc /> |
|
public override string ToString() |
|
{ |
|
return Value; |
|
} |
|
|
|
public static implicit operator string(StringValue stringValue) => stringValue.ToString(); |
|
}
|
|
|