namespace CleanLib.Lego.Parts;
public class Color : Entity {
private string? _Name;
public string Name {
get => this._Name!;
set {
value.ThrowIfNullOrWhiteSpace();
this._Name = value;
}
}
private string? _Code;
public string Code {
get => this._Code!;
set {
value.ThrowIfNullOrWhiteSpace();
this._Code = value;
}
}
public Color(string name, string code) {
this.Name = name;
this.Code = code;
}
}
namespace CleanLib.Lego.Parts;
public class Color : Entity {
private string? _Name;
public string Name {
get => this._Name!;
set {
value.ThrowIfNullOrWhiteSpace();
this._Name = value;
}
}
private string? _Code;
public string Code {
get => this._Code!;
set {
value.ThrowIfNullOrWhiteSpace();
this._Code = value;
}
}
public Color(string name, string code) {
this.Name = name;
this.Code = code;
}
}