コード例 #1
0
 /// <summary>Create a subdivider for the specified string divider.</summary>
 /// <param name="baseDivider">Divider to reference.</param>
 /// <param name="delimiter">Delimiter to search for.</param>
 /// <param name="parentIndex">Index within the parent to reference.</param>
 public DescendantStringDivider(StringDivider baseDivider, char delimiter, int parentIndex)
 {
     _baseDivider = baseDivider;
     Index        = parentIndex;
     Delimiter    = delimiter;
 }
 public void InitializeAncestor()
 {
     _ancestorDelimiter = "\u0001";
     _ancestorData = Any.DelimitedString(_ancestorDelimiter);
     _ancestorDivider = new RootStringDivider(_ancestorData, _ancestorDelimiter[0]);
 }
コード例 #3
0
 /// <summary>Create a subdivider for the specified string divider.</summary>
 /// <param name="baseDivider">Divider to reference.</param>
 /// <param name="delimiter">Delimiter to search for.</param>
 /// <param name="parentIndex">Index within the parent to reference.</param>
 public DescendantStringDivider(StringDivider baseDivider, char delimiter, int parentIndex)
 {
     _baseDivider = baseDivider;
     Index = parentIndex;
     Delimiter = delimiter;
 }