mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-01-27 01:20:39 +00:00
IDynamicResource Added
This commit is contained in:
@@ -40,19 +40,19 @@ public class MemberData
|
||||
return rt;
|
||||
}
|
||||
|
||||
public string? GetAnnotation()
|
||||
{
|
||||
string? rt = null;
|
||||
var md = this;
|
||||
while (md != null)
|
||||
{
|
||||
var annotationAttr = md.Info.GetCustomAttribute<AnnotationAttribute>();
|
||||
if (annotationAttr != null)
|
||||
rt = annotationAttr.Annotation;
|
||||
md = md.Child;
|
||||
}
|
||||
//public string? GetAnnotation()
|
||||
//{
|
||||
// string? rt = null;
|
||||
// var md = this;
|
||||
// while (md != null)
|
||||
// {
|
||||
// var annotationAttr = md.Info.GetCustomAttribute<AnnotationAttribute>();
|
||||
// if (annotationAttr != null)
|
||||
// rt = annotationAttr.Annotation;
|
||||
// md = md.Child;
|
||||
// }
|
||||
|
||||
return rt;
|
||||
}
|
||||
// return rt;
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user