Esempio n. 1
0
        internal AssemblyInfoProperties(PropertyGroupCollection propertyGroupCollection)
        {
            if (propertyGroupCollection == null)
            {
                throw new ArgumentNullException(nameof(propertyGroupCollection));
            }

            _company              = new Lazy <string>(() => propertyGroupCollection.GetElementValue("Company"));
            _configuration        = new Lazy <string>(() => propertyGroupCollection.GetElementValue("Configuration"));
            _copyright            = new Lazy <string>(() => propertyGroupCollection.GetElementValue("Copyright"));
            _description          = new Lazy <string>(() => propertyGroupCollection.GetElementValue("Description"));
            _fileVersion          = new Lazy <string>(() => propertyGroupCollection.GetElementValue("FileVersion"));
            _informationalVersion = new Lazy <string>(() => propertyGroupCollection.GetElementValue("InformationalVersion"));
            _product              = new Lazy <string>(() => propertyGroupCollection.GetElementValue("Product"));
            _assemblyTitle        = new Lazy <string>(() => propertyGroupCollection.GetElementValue("AssemblyTitle"));
            _assemblyVersion      = new Lazy <string>(() => propertyGroupCollection.GetElementValue("AssemblyVersion"));
            _neutralLanguage      = new Lazy <string>(() => propertyGroupCollection.GetElementValue("NeutralLanguage"));
        }