public static DictPair Decode(ASN1.AsnReader sequence)
        {
            var dict         = new DictPair();
            var dictSequence = sequence.ReadSequence();

            dict.Name  = dictSequence.ReadUTF8String();
            dict.Value = GTXValue.Decode(dictSequence);

            return(dict);
        }
        public override bool Equals(object obj)
        {
            if ((obj == null) || !this.GetType().Equals(obj.GetType()))
            {
                return(false);
            }
            else
            {
                DictPair dictPair = (DictPair)obj;

                return(this.Name.Equals(dictPair.Name) &&
                       this.Value.Equals(dictPair.Value));
            }
        }
Beispiel #3
0
 private static void GetSceneFolders(Type[] listOfBs)
 {
     foreach (Type t in listOfBs.Where(t => !t.IsAbstract).Select(t => t))
     {
         DictPair subDict = subDictsInfos.Find(sd => sd.Type == t.BaseType);
         if (subDict != null)
         {
             subDict.RaceFolders.ForEach(rf =>
             {
                 string subPath = rf.Dir.FullName + "/" + t.FullName;
                 sceneFolders.Add(new SceneFolder(Directory.Exists(subPath) ? new DirectoryInfo(subPath) : rf.Dir.CreateSubdirectory(subPath), rf.Race ?? null, t));
             });
         }
     }
 }