private static SlabConfiguration[] LoadSlabBindingConfigurations(XmlNode node)
 {
     if (node.LocalName != "configurations")
     {
         throw new SlabManifestFormatException(string.Format("configurations node expected. Found {0}", node.LocalName));
     }
     SlabConfiguration[] array = new SlabConfiguration[node.ChildNodes.Count];
     for (int i = 0; i < node.ChildNodes.Count; i++)
     {
         string attributeValue  = SlabManifestLoader.GetAttributeValue(node.ChildNodes[i], "type");
         string attributeValue2 = SlabManifestLoader.GetAttributeValue(node.ChildNodes[i], "layout");
         array[i] = new SlabConfiguration
         {
             Type   = attributeValue,
             Layout = SlabManifestLoader.GetResourceLayout(attributeValue2)
         };
     }
     return(array);
 }
Exemple #2
0
        public override bool Equals(object obj)
        {
            SlabConfiguration slabConfiguration = obj as SlabConfiguration;

            return(slabConfiguration != null && this.Type == slabConfiguration.Type && base.Equals(obj));
        }