-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ArchLeaders
committed
Jul 11, 2023
1 parent
4f768f5
commit 42e4dfd
Showing
4 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using ConfigFactory.Core.Attributes; | ||
using System.Reflection; | ||
|
||
namespace ConfigFactory.Core.Models; | ||
|
||
public readonly struct ConfigProperty | ||
{ | ||
public PropertyInfo Property { get; } | ||
public ConfigAttribute Attribute { get; } | ||
|
||
public void Deconstruct(out PropertyInfo property, out ConfigAttribute attribute) | ||
{ | ||
property = Property; | ||
attribute = Attribute; | ||
} | ||
|
||
public ConfigProperty(PropertyInfo property, ConfigAttribute attribute) | ||
{ | ||
Property = property; | ||
Attribute = attribute; | ||
} | ||
} |