SenseNet.ContentRepository.ContentNamingHelper.EnforceRequiredExtension C# (CSharp) Метод

EnforceRequiredExtension() публичный статический Метод

public static EnforceRequiredExtension ( string nameBase, ContentType type ) : string
nameBase string
type SenseNet.ContentRepository.Schema.ContentType
Результат string
        public static string EnforceRequiredExtension(string nameBase, ContentType type)
        {
            if (type != null)
            {
                string reqext = type.Extension;

                if (!string.IsNullOrEmpty(reqext))
                    nameBase = EnsureExtension(nameBase, reqext);
            }

            return nameBase;
        }
        public static string EnsureExtension(string nameBase, string reqext)