Last active
February 12, 2024 02:50
-
-
Save Kittoes0124/de3767d5c7c6519556a0a226968826da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Sandbox; | |
public sealed class PropertyMetadata | |
{ | |
private string m_name = string.Empty; | |
private Type m_type = typeof(void); | |
public string Name { | |
get => m_name; | |
set { | |
ArgumentException.ThrowIfNullOrWhiteSpace( | |
argument: value, | |
paramName: nameof(value) | |
); | |
m_name = value; | |
} | |
} | |
public int? Ordinal { get; set; } | |
public Type Type { | |
get => m_type; | |
set { | |
ArgumentNullException.ThrowIfNull( | |
argument: value, | |
paramName: nameof(value) | |
); | |
m_type = value; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment