Skip to content

Instantly share code, notes, and snippets.

@rarous
Created January 31, 2014 11:06
Show Gist options
  • Save rarous/8730126 to your computer and use it in GitHub Desktop.
Save rarous/8730126 to your computer and use it in GitHub Desktop.
return connectorType.
GetCustomAttribute<ConfigurationNameAttribute>(inherit: true).
ToMaybe().
Select(x => x.Name).
Return(@default: connectorType.Name);
var attr = connectorType.
GetCustomAttribute<ConfigurationNameAttribute>(inherit: true);
if (attr != null)
return attr.Name;
return connectorType.Name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment