当前位置: 首页>>代码示例>>C#>>正文


C# Generic.IDictionary类代码示例

本文整理汇总了C#中System.Collections.Generic.IDictionary的典型用法代码示例。如果您正苦于以下问题:C# System.Collections.Generic.IDictionary类的具体用法?C# System.Collections.Generic.IDictionary怎么用?C# System.Collections.Generic.IDictionary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


System.Collections.Generic.IDictionary类属于命名空间,在下文中一共展示了System.Collections.Generic.IDictionary类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Description

 /// <summary>
 /// Extracts description information from the server's response.
 /// </summary>
 /// <param name='description'>
 /// The structure to be dissected.
 /// </param>
 internal Description(System.Collections.Generic.IDictionary<string, object> description)
 {
     this.Uid = (string)description["uid"];
     if(description.ContainsKey("keys")){
         this.Keys = new Keys((System.Collections.Generic.IDictionary<string, object>)description["keys"]);
     }
     this.Physical = new Internal.DescriptionPhysical((System.Collections.Generic.IDictionary<string, object>)description["physical"]);
     this.Policy = new Internal.DescriptionPolicy((System.Collections.Generic.IDictionary<string, object>)description["policy"]);
     this.Stats = new Internal.DescriptionStats((System.Collections.Generic.IDictionary<string, object>)description["stats"]);
     this.Meta = (System.Collections.Generic.IDictionary<string, object>)description["meta"];
 }
开发者ID:flan,项目名称:media-storage,代码行数:17,代码来源:Description.cs

示例2: Generate

        public void Generate(
            System.Collections.Generic.IDictionary<string, System.IO.TextWriter> writers,
            string p1, string p2)
        {
            this.writers = writers;

            //{parameters_set}
            this.p1 = p1;
            this.p2 = p2;

            this.Generate();
        }
开发者ID:sethyuan,项目名称:dcg,代码行数:12,代码来源:Generator.cs

示例3: SetDiagnostics

		// must be Map<String, String>
        internal void SetDiagnostics(System.Collections.Generic.IDictionary<string, string> diagnostics)
		{
			this.diagnostics = diagnostics;
		}
开发者ID:Rationalle,项目名称:ravendb,代码行数:5,代码来源:SegmentInfo.cs

示例4: Init

		protected virtual void Init(NeoDatis.Odb.Core.Transaction.ISession session, string
			 name)
		{
			this.name = name;
			this.session = session;
			readingObjectInfo = new OdbHashMap<NeoDatis.Odb.OID, object[]>();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:TmpCache.cs

示例5: ClassInfoList

		public ClassInfoList(NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo mainClassInfo
			)
		{
			this.classInfos = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo
				>();
			this.classInfos[mainClassInfo.GetFullClassName()] = mainClassInfo;
			this.mainClassInfo = mainClassInfo;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:ClassInfoList.cs

示例6: ServerSession

		public ServerSession(NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine engine, string
			 sessionId) : base(engine, sessionId)
		{
			classInfoIds = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Odb.OID
				>();
			this.sessionManager = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClientServerSessionManager
				();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:ServerSession.cs

示例7: ConnectionManager

		public ConnectionManager(NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine engine)
		{
			// A map that contains oids that are locked. The key is the oid, the value is the connection that hold the object
			this.storageEngine = engine;
			connections = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Odb.Core.Server.Connection.IConnection
				>();
			lockedOids = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.OID, NeoDatis.Odb.Core.Server.Connection.IConnection
				>();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:9,代码来源:ConnectionManager.cs

示例8: Clear

		public override void Clear(bool setToNull)
		{
			base.Clear(setToNull);
			oidsOfNNoi.Clear();
			if (setToNull)
			{
				oidsOfNNoi = null;
			}
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:9,代码来源:ServerCache.cs

示例9: Init

		private void Init()
		{
			listOfUpdateTriggers = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Tool.Wrappers.List.IOdbList
				<NeoDatis.Odb.Core.Trigger.Trigger>>();
			listOfDeleteTriggers = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Tool.Wrappers.List.IOdbList
				<NeoDatis.Odb.Core.Trigger.Trigger>>();
			listOfSelectTriggers = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Tool.Wrappers.List.IOdbList
				<NeoDatis.Odb.Core.Trigger.Trigger>>();
			listOfInsertTriggers = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Tool.Wrappers.List.IOdbList
				<NeoDatis.Odb.Core.Trigger.Trigger>>();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:11,代码来源:DefaultTriggerManager.cs

示例10: ClientObjectIntrospector

		public ClientObjectIntrospector(NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine
			, string connectionId) : base(storageEngine)
		{
			clientOids = new NeoDatis.Tool.Wrappers.List.OdbArrayList<NeoDatis.Odb.OID>();
			aois = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.OID, NeoDatis.Odb.Core.Server.Layers.Layer2.Meta.ClientNonNativeObjectInfo
				>();
			objects = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.OID, object>();
			sessionManager = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClientServerSessionManager
				();
			this.connectionId = connectionId;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:11,代码来源:ClientObjectIntrospector.cs

示例11: Serializer

		private Serializer()
		{
			serializers = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string, NeoDatis.Odb.Impl.Core.Layers.Layer2.Meta.Serialization.ISerializer
				>();
			serializers.Add(GetClassId(typeof(NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo
				)), new NeoDatis.Odb.Impl.Core.Layers.Layer2.Meta.Serialization.AtomicNativeObjectSerializer
				());
			serializers.Add(GetClassId(typeof(NeoDatis.Odb.Core.Layers.Layer2.Meta.CollectionObjectInfo
				)), new NeoDatis.Odb.Impl.Core.Layers.Layer2.Meta.Serialization.CollectionObjectInfoSerializer
				());
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:11,代码来源:Serializer.cs

示例12: MetaModel

		public MetaModel()
		{
			this.classPool = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClassPool();
			rapidAccessForUserClassesByName = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string
				, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo>(10);
			rapidAccessForSystemClassesByName = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<string
				, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo>(10);
			rapidAccessForClassesByOid = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.OID
				, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo>(10);
			allClassInfos = new NeoDatis.Tool.Wrappers.List.OdbArrayList<NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo
				>();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:12,代码来源:MetaModel.cs

示例13: DefaultServerConnection

		public DefaultServerConnection(NeoDatis.Odb.Core.Server.Connection.ConnectionManager
			 connectionManager, string connectionId, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine
			 storageEngine)
		{
			this.connectionManager = connectionManager;
			this.id = connectionId;
			this.storageEngine = storageEngine;
			this.baseIdentifier = storageEngine.GetBaseIdentification().GetIdentification();
			this.oidsLockedForUpdate = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<NeoDatis.Odb.OID
				, long>();
			actions = new int[NeoDatis.Odb.Core.Server.Connection.ConnectionAction.GetNumberOfActions
				()];
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:13,代码来源:DefaultServerConnection.cs

示例14: Connection

		public Connection(NeoDatis.Odb.Core.Server.Connection.ConnectionManager connectionManager
			, string connectionId, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine
			)
		{
			this.connectionManager = connectionManager;
			this.id = connectionId;
			this.storageEngine = storageEngine;
			this.baseIdentifier = storageEngine.GetBaseIdentification().GetIdentification();
			this.oidsLockedForUpdate = new System.Collections.Generic.Dictionary<NeoDatis.Odb.OID
				, long>();
			actions = new int[NeoDatis.Odb.Core.Server.Connection.ConnectionAction.GetNumberOfActions
				()];
		}
开发者ID:ekicyou,项目名称:pasta,代码行数:13,代码来源:Connection.cs

示例15: LazyODBBTreePersister

		public LazyODBBTreePersister(NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine engine
			)
		{
			// See the map strategy performance test at
			// test/org.neodatis.odb.test.performance.TestMapPerf
			// TODO create a boolean value to know if data must be saved on update or
			// only at the end
			oids = new System.Collections.Generic.Dictionary<NeoDatis.Odb.OID, object>();
			modifiedObjectOids = new NeoDatis.Tool.Wrappers.Map.OdbHashMap<object, int>();
			modifiedObjectOidList = new NeoDatis.Tool.Wrappers.List.OdbArrayList<NeoDatis.Odb.OID
				>(500);
			this.engine = engine;
			this.engine.AddCommitListener(this);
			smap = oids;
			smodifiedObjects = modifiedObjectOids;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:16,代码来源:LazyODBBTreePersister.cs


注:本文中的System.Collections.Generic.IDictionary类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。