Example #1
0
        /// <summary>
        /// Sets <see cref="Dependency"/> by given name. If manifest already contains <see cref="Dependency"/> with given name,
        /// existing <see cref="Dependency"/> will be overwritten.
        /// </summary>
        /// <param name="name">Dependency name.</param>
        /// <param name="version">Dependency version.</param>
        public void SetDependency(string name, string version)
        {
            var dependency = new Dependency(name, version);

            m_Dependencies[dependency.Name] = dependency;
        }
Example #2
0
 /// <summary>
 /// Gets the <see cref="Dependency"/> associated with the specified name.
 /// </summary>
 /// <param name="name">The name of the <see cref="Dependency"/> to get.</param>
 /// <param name="dependency">When this method returns, contains the <see cref="Dependency"/> associated with the specified name,
 /// if the name is found; otherwise, `null`. This parameter is passed uninitialized.</param>
 /// <returns>true if the <see cref="Manifest"/> contains a <see cref="Dependency"/> with the specified name; otherwise, false.</returns>
 public bool TryGetDependency(string name, out Dependency dependency)
 {
     return(m_Dependencies.TryGetValue(name, out dependency));
 }
Example #3
0
        /// <summary>
        /// Sets <see cref="Dependency"/> by given full name. If manifest already contains <see cref="Dependency"/> with given name,
        /// existing <see cref="Dependency"/> will be overwritten.
        /// </summary>
        /// <param name="fullName">Dependency full name.</param>
        public void SetDependency(string fullName)
        {
            var dependency = new Dependency(fullName);

            m_Dependencies[dependency.Name] = dependency;
        }