Exemple #1
0
        /// <summary>
        /// Creates empty structure which contains no data in containers.
        /// </summary>
        /// <param name="factories">The factories.</param>
        /// <returns>
        /// New empty structure which contains no data in containers.
        /// </returns>
        public static CopySnapshotStructureProxy CreateEmpty(ModularMemoryModelFactories factories)
        {
            CopySnapshotStructureProxy proxy = new CopySnapshotStructureProxy();

            proxy.snapshotStructure = SnapshotStructureContainer.CreateEmpty(factories);
            return(proxy);
        }
Exemple #2
0
 /// <summary>
 /// Creates empty structure which contains no data in containers.
 /// </summary>
 /// <param name="factories">The factories.</param>
 /// <returns>
 /// New empty structure which contains no data in containers.
 /// </returns>
 public static LazyCopySnapshotStructureProxy CreateEmpty(ModularMemoryModelFactories factories)
 {
     LazyCopySnapshotStructureProxy proxy = new LazyCopySnapshotStructureProxy(factories);
     proxy.snapshotStructure = SnapshotStructureContainer.CreateEmpty(factories);
     proxy.readonlyInstance = proxy.snapshotStructure;
     proxy.isReadonly = false;
     return proxy;
 }