Example #1
0
 public ConfigSection(string tile, string content)
 {
     mTile = tile;
     if (!string.IsNullOrEmpty(mTile))
     {
         if ((mTile[0] == '[') && (mTile[mTile.Length - 1] == ']'))
         {
             mTile = mTile.Substring(1, mTile.Length - 2);
         }
     }
     if (!string.IsNullOrEmpty(content))
     {
         string[] contentArr = content.Split(_cContentSplit, System.StringSplitOptions.RemoveEmptyEntries);
         if ((contentArr != null) && (contentArr.Length > 0))
         {
             ContentList.AddRange(contentArr);
             FormatContentList();
         }
     }
 }