Exemplo n.º 1
0
        protected static UnitList SplitUnits(string iText)
        {
            UnitList        vList    = new UnitList();
            MatchCollection vMatches = ExecuteExpression(iText, cUnitLines);

            foreach (Match vMatch in vMatches)
            {
                string vUnitLine = GetMatchResult(1, vMatch);
                if (vUnitLine == "")
                {
                    continue;
                }

                UnitItem vUnit = SplitUnitInfo(vUnitLine);
                if (vUnit != null)
                {
                    vList.Add(vUnit);
                }
            }

            return(vList);
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     fImplementation = null;
     fInterface      = null;
 }
Exemplo n.º 3
0
 public UnitStructure()
 {
     fImplementation = new UnitList();
     fInterface      = new UnitList();
 }
 public SuggestedUnitStructure()
 {
     fUses            = new UnitStructure();
     fToDelete        = new UnitList();
     fMoveToInterface = new UnitList();
 }
 public void Dispose()
 {
     List = null;
 }
 public UnitListEnumerator(UnitList iList)
 {
     List = new UnitList();
     List.AddRange(iList);
 }