Пример #1
0
 private static SlabStringFile[] LoadSlabBindingStringFiles(XmlNode node)
 {
     if (node.LocalName != "strings" && node.LocalName != "packagedStrings")
     {
         throw new SlabManifestFormatException(string.Format("strings node expected. Found {0}", node.LocalName));
     }
     SlabStringFile[] array = new SlabStringFile[node.ChildNodes.Count];
     for (int i = 0; i < node.ChildNodes.Count; i++)
     {
         string attributeValue  = SlabManifestLoader.GetAttributeValue(node.ChildNodes[i], "name");
         string attributeValue2 = SlabManifestLoader.GetAttributeValue(node.ChildNodes[i], "type");
         string attributeValue3 = SlabManifestLoader.GetAttributeValue(node.ChildNodes[i], "layout");
         if (attributeValue != null)
         {
             array[i] = new SlabStringFile
             {
                 Name   = attributeValue,
                 Type   = attributeValue2,
                 Layout = SlabManifestLoader.GetResourceLayout(attributeValue3)
             };
         }
     }
     return(array);
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            SlabStringFile slabStringFile = obj as SlabStringFile;

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