Exemplo n.º 1
0
        private INIBlock(string[] lines, string pt, int l)
        {
            exists = true;

            line = l;
            id   = counter++;

            type = header.Match(lines[0]).Groups["name"].Value;

            path = pt;

            parameters  = new List <INIParameter>();
            xparameters = new HashSet <XMLParameter>();
            blocks      = new List <INIBlock>();

            valid      = true;
            references = new HashSet <INIBlock>();
            referenced = new HashSet <INIBlock>();

            errors = new List <ValidationError>();

            for (int a = 1; a < lines.Length; a++)
            {
                INIParameter p = INIParameter.Create(lines[a], this);
                if (p != null)
                {
                    parameters.Add(p);
                }
            }
        }
Exemplo n.º 2
0
        public INIValue(string v, int offset, INIParameter parent)
        {
            Value = v;

            Hash = CRC.GetInstance().ComputeHash(v);
            Crc  = CRC.GetInstance().ComputeCRC(v);

            Offset = offset;

            valid = true;

            Parent = parent;

            Errors = new List <ValidationError>();
        }
Exemplo n.º 3
0
 public int CompareTo(INIParameter other)
 {
     return(this.Name.CompareTo(other.Name));
 }