Created
December 10, 2013 16:00
-
-
Save dguder/7893009 to your computer and use it in GitHub Desktop.
Read assembly copyright version with linq
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
public string ReadAsmCopyRightInfo(Assembly asm) | |
{ | |
var asmInfo = String.Empty; | |
var attr = asm.GetCustomAttributes(false).OfType<AssemblyCopyrightAttribute>().FirstOrDefault(); | |
if (null != attr) | |
asmInfo = attr.Copyright; | |
return asmInfo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment