Esempio n. 1
0
        internal void Read(XmlReader reader)
        {
            while (reader.Read())
            {
                // Look for the end element.
                if (reader.NodeType == XmlNodeType.EndElement && AppConfig.StringEquals(reader.Name, "runtime"))
                {
                    return;
                }

                // Look for a <dependentAssembly> element
                if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "dependentAssembly"))
                {
                    var dependentAssembly = new DependentAssembly();
                    dependentAssembly.Read(reader);

                    // Only add if there was an <assemblyIdentity> tag.
                    // Otherwise, this section is no use.
                    if (dependentAssembly.PartialAssemblyName != null)
                    {
                        DependentAssemblies.Add(dependentAssembly);
                    }
                }
            }
        }
Esempio n. 2
0
 public Definition() : base(Construct.Definition)
 {
     DependentAssemblies.Add(BasicTypes.SystemAssembly);
     DependentNamespaces.Add(BasicTypes.SystemNamespace);
 }
Esempio n. 3
0
 public override bool ShouldSerializeDependentAssemblies()
 => DependentAssemblies.SequenceEqual(DefaultDependentAssemblies);
Esempio n. 4
0
 public override bool ShouldSerializeDependentAssemblies()
 => DependentAssemblies.SequenceEqual(ApplicationManifestSettings.DefaultDependentAssemblies);