コード例 #1
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetCulture
 ///
 /// <summary>
 /// Gets the culture value of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Culture value.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetCulture(this Source src) =>
 Unify(src.Get <AssemblyCultureAttribute>()?.Culture);
コード例 #2
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetTrademark
 ///
 /// <summary>
 /// Gets the trademark description of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Trademark description.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetTrademark(this Source src) =>
 Unify(src.Get <AssemblyTrademarkAttribute>()?.Trademark);
コード例 #3
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetConfiguration
 ///
 /// <summary>
 /// Gets the configuration value of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Configuration value.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetConfiguration(this Source src) =>
 Unify(src.Get <AssemblyConfigurationAttribute>()?.Configuration);
コード例 #4
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetCopyright
 ///
 /// <summary>
 /// Gets the copyright description of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Copyright description.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetCopyright(this Source src) =>
 Unify(src.Get <AssemblyCopyrightAttribute>()?.Copyright);
コード例 #5
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetProduct
 ///
 /// <summary>
 /// Gets the product name of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Product name.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetProduct(this Source src) =>
 Unify(src.Get <AssemblyProductAttribute>()?.Product);
コード例 #6
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetCompany
 ///
 /// <summary>
 /// Gets the company name of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Company name.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetCompany(this Source src) =>
 Unify(src.Get <AssemblyCompanyAttribute>()?.Company);
コード例 #7
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetDescription
 ///
 /// <summary>
 /// Gets the description of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Description value.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetDescription(this Source src) =>
 Unify(src.Get <AssemblyDescriptionAttribute>()?.Description);
コード例 #8
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetTitle
 ///
 /// <summary>
 /// Gets the title of the specified assembly.
 /// </summary>
 ///
 /// <param name="src">Assembly object.</param>
 ///
 /// <returns>Title value.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetTitle(this Source src) =>
 Unify(src.Get <AssemblyTitleAttribute>()?.Title);