Skip to content

Instantly share code, notes, and snippets.

@dguder
Created December 10, 2013 16:00
Show Gist options
  • Save dguder/7893009 to your computer and use it in GitHub Desktop.
Save dguder/7893009 to your computer and use it in GitHub Desktop.
Read assembly copyright version with linq
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