/// <summary> /// Initializes the local to remote mapping for a pair of string tables. /// </summary> /// <param name="localTable">The local table.</param> /// <param name="remoteTable">The remote table.</param> /// <returns>The mapping.</returns> private int[] InitializeLocalToRemoteMapping(List <string> localTable, StringTable remoteTable) { List <int> indexes = new List <int>(); indexes.Add(0); if (remoteTable is NamespaceTable) { indexes.Add(1); } for (int ii = 0; ii < localTable.Count; ii++) { int index = remoteTable.GetIndex(localTable[ii]); indexes.Add(index); } return(indexes.ToArray()); }
/// <summary> /// Initializes the local to remote mapping for a pair of string tables. /// </summary> /// <param name="localTable">The local table.</param> /// <param name="remoteTable">The remote table.</param> /// <returns>The mapping.</returns> private int[] InitializeLocalToRemoteMapping(List<string> localTable, StringTable remoteTable) { List<int> indexes = new List<int>(); indexes.Add(0); if (remoteTable is NamespaceTable) { indexes.Add(1); } for (int ii = 0; ii < localTable.Count; ii++) { int index = remoteTable.GetIndex(localTable[ii]); indexes.Add(index); } return indexes.ToArray(); }