//=============================================================================== // Goal Book. // Copyright © 2009 Mark Brownsword. //=============================================================================== #region Using Statements using System; using System.Reflection; using System.Runtime.InteropServices; using System.Windows; #endregion #region Assembly Attributes // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("GoalBook.Shell")] [assembly: AssemblyDescription("GoalBook.Shell")] #endregion namespace GoalBook.Shell { /// <summary> /// AssemblyInfo class exposes generic static method to /// obtain specified attributes from the executing assembly. /// </summary> internal static class AssemblyInfo { /// <summary> /// Get the specified custom attribute. /// </summary> /// <typeparam name="TAttribute">The custome attribute required.</typeparam> /// <returns>Custom attribute.</returns> internal static TAttribute GetCustomAttribute<TAttribute>() where TAttribute : Attribute { TAttribute attribute = (TAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(TAttribute)); return attribute; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)