コード例 #1
0
        /// <summary>
        /// Gets the or create path modification.
        /// </summary>
        /// <param name="modifiedPath">The modified path.</param>
        /// <returns>Collection to store all modified indexes which belongs to given path</returns>
        public MemoryIndexModificationList GetOrCreatePathModification(MemoryPath modifiedPath)
        {
            MemoryIndexModificationList modificationList;

            if (!assignedPaths.TryGetValue(modifiedPath, out modificationList))
            {
                modificationList = new MemoryIndexModificationList();
                assignedPaths.Add(modifiedPath, modificationList);
            }

            return(modificationList);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssignInfo"/> class.
 /// </summary>
 public AssignInfo()
 {
     AliasAssignModifications = new MemoryIndexModificationList();
 }