Skip to content

Instantly share code, notes, and snippets.

@icoxfog417
Created November 18, 2013 00:57
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 icoxfog417/7520661 to your computer and use it in GitHub Desktop.
Save icoxfog417/7520661 to your computer and use it in GitHub Desktop.
get properties that have attribute by LINQ
Dim targets = _
From p As PropertyInfo In props
Let attribute As XXXAttribute = p.GetCustomAttributes(GetType(XXXtAttribute), True).SingleOrDefault
Where Not attribute Is Nothing
Select p, attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment