add partial codes
This commit is contained in:
1 parent
507a44aa25
commit
aeb5d2a3b8
37 files changed
+806
-4
No files matched your search
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace HandyControl.Tools.Extension
|
||||
{
|
||||
internal static class CustomAttributeExtension
|
||||
{
|
||||
public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType) => Attribute.GetCustomAttribute(element, attributeType);
|
||||
|
||||
public static T GetCustomAttribute<T>(this MemberInfo element) where T : Attribute => (T)GetCustomAttribute(element, typeof(T));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user