1.0-northcote/cs/Sharpen/frmSharpen.cs
/// <summary>
/// Sets Sharpen copyright details, title, and version via reflection.
/// </summary>
Sets Sharpen copyright details, title, and version via reflection.
Sets Sharpen copyright details title and version via reflection .
private void SetSharpenDetails()
        {
            foreach (Attribute attr in Assembly.GetExecutingAssembly().GetCustomAttributes(false))
            {
                if (attr.GetType() == typeof(AssemblyCopyrightAttribute))
                {
                    this.sharpenCopyright = ((AssemblyCopyrightAttribute)attr).Copyright;
                }
                if (attr.GetType() == typeof(AssemblyTitleAttribute))
                {
                    this.sharpenTitle = ((AssemblyTitleAttribute)attr).Title;
                }
                if (attr.GetType() == typeof(AssemblyFileVersionAttribute))
                {
                    this.sharpenVersion = ((AssemblyFileVersionAttribute)attr).Version;
                }
            }
        }
private void SetSharpenDetails ( ) { foreach ( Attribute attr in Assembly . GetExecutingAssembly ( ) . GetCustomAttributes ( false ) ) { if ( attr . GetType ( ) == typeof ( AssemblyCopyrightAttribute ) ) { this . sharpenCopyright = ( ( AssemblyCopyrightAttribute ) attr ) . Copyright ; } if ( attr . GetType ( ) == typeof ( AssemblyTitleAttribute ) ) { this . sharpenTitle = ( ( AssemblyTitleAttribute ) attr ) . Title ; } if ( attr . GetType ( ) == typeof ( AssemblyFileVersionAttribute ) ) { this . sharpenVersion = ( ( AssemblyFileVersionAttribute ) attr ) . Version ; } } }
Sets Sharpen copyright details, title, and version via reflection.
Sets Sharpen copyright details title and version via reflection .