Time:09-26
CodePudding user response:
GetProperty, I remember a GetCustomAttributes?
Var type=typeof (class); Var propertyInfos=the GetProperties (); Foreache (var p in propertyInfos) {If (p.I sDefined (typeof (CustomeAttribute), true)) {. } }
Page link:https//www.codepudding.com/net/33092.html