本文整理汇总了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"];
}
示例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();
}
示例3: SetDiagnostics
// must be Map<String, String>
internal void SetDiagnostics(System.Collections.Generic.IDictionary<string, string> diagnostics)
{
this.diagnostics = diagnostics;
}
示例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[]>();
}
示例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;
}
示例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
();
}
示例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
>();
}
示例8: Clear
public override void Clear(bool setToNull)
{
base.Clear(setToNull);
oidsOfNNoi.Clear();
if (setToNull)
{
oidsOfNNoi = null;
}
}
示例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>>();
}
示例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;
}
示例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
());
}
示例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
>();
}
示例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
()];
}
示例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
()];
}
示例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;
}