コード例 #1
0
        /// <summary>
        /// Return naming convention.
        /// </summary>
        /// <param name="conventionId">
        /// The convention id.
        /// </param>
        /// <returns>
        /// The <see cref="INamingConvention"/>.
        /// </returns>
        public static INamingConvention ReturnNamingConvention(Guid conventionId)
        {
            if (NamingConventions == null || !NamingConventions.Any())
            {
                return(null);
            }

            return(NamingConventions.FirstOrDefault(
                       d => d.Metadata["ValueMetaData"].ToString().ToLower() == conventionId.ToString().ToLower()).Value);
        }