当前位置: 首页>>代码示例>>C#>>正文


C# Utils.RemoveAt方法代码示例

本文整理汇总了C#中System.Utils.RemoveAt方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.RemoveAt方法的具体用法?C# Utils.RemoveAt怎么用?C# Utils.RemoveAt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Utils的用法示例。


在下文中一共展示了Utils.RemoveAt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FindRepeatPlans


//.........这里部分代码省略.........
            int i = sPlanNames[j].LastIndexOf(", OID:");
            string sOID = sPlanNames[j].Trim().Substring(i + 6);
            iOID = Convert.ToInt32(sOID);
            try { dictNameFromID.Add(iOID, sName_l); }
            catch { }
            //test if we're in a new group and increment the array
            if (bIsNewGroup)
            {
              FabricUTILS.RedimPreserveString(ref sRepeatPlans, 1);
              idx++;
              sRepeatPlans[idx] = "";
            }

            if (!sRepeatPlans[idx].Contains("," + sOID + " "))
              sRepeatPlans[idx] += "," + sOID + " ";
            if (sName_l.ToUpper() == sName_k.ToUpper())
            {
              i = sPlanNames[j - 1].LastIndexOf(", OID:");
              sOID = sPlanNames[j - 1].Trim().Substring(i + 6);

              if (!sRepeatPlans[idx].Contains("," + sOID + " "))
                sRepeatPlans[idx] += "," + sOID + " ";
            }
            if (sName_l.ToUpper() == sName_m.ToUpper())
            {
              i = sPlanNames[j + 1].LastIndexOf(", OID:");
              sOID = sPlanNames[j + 1].Trim().Substring(i + 6);

              if (!sRepeatPlans[idx].Contains("," + sOID + " "))
                sRepeatPlans[idx] += "," + sOID + " ";
            }
              }
              else
            FabricUTILS.RemoveAt(ref sPlanNames, j);

              if (m_pStepProgressor.Position < m_pStepProgressor.MaxRange)
            m_pStepProgressor.Step();
            }

            string[] sTemp = new string[sRepeatPlans.GetLength(0)];
            System.Array.Copy(sRepeatPlans, sTemp, sRepeatPlans.GetLength(0));

            if (sRepeatPlans.GetLength(0) ==1) //if there is only one repeat plan group
            {
              if (sRepeatPlans[0] == null) //test if there are no repeat plans
            return false;

              if (sRepeatPlans[0].Trim() == "") //test if there are no repeat plans
            return false;
            }

            //Define the summary array
            string[] sSummaryNames = new string[0];//create a string array for the summary list

            int z = 0;
            int h = 0;
            foreach (string s in sRepeatPlans)
            {
              if (s == null)
            continue;
              string sT2 = s.Replace(",", "").Trim();
              string[] sOID = sT2.Split(' ');
              int[] iOIDArr = new int[sOID.GetLength(0)];
              int zz = 0;
              foreach (string xx in sOID)
              {
开发者ID:Esri,项目名称:parcel-fabric-desktop-addins,代码行数:67,代码来源:MergeSameNameFabricPlans.cs


注:本文中的System.Utils.RemoveAt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。