Skip to content

Instantly share code, notes, and snippets.

@Kittoes0124
Last active February 12, 2024 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kittoes0124/de3767d5c7c6519556a0a226968826da to your computer and use it in GitHub Desktop.
Save Kittoes0124/de3767d5c7c6519556a0a226968826da to your computer and use it in GitHub Desktop.
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