本文整理汇总了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类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: SetCurrentCIs
public virtual void SetCurrentCIs(System.Collections.Generic.IDictionary<string,
NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo> currentCIs)
{
this.currentCIs = currentCIs;
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:5,代码来源:CheckMetaModelCompatibilityMessage.cs
示例5: PopulateParseTable
private static void PopulateParseTable()
{
_parseTable =
new System.Collections.Generic.Dictionary<int, System.Collections.Generic.IDictionary<int, int[]>>();
TableAddRow(ParserToken.Array);
TableAddCol(ParserToken.Array, '[',
'[',
(int) ParserToken.ArrayPrime);
TableAddRow(ParserToken.ArrayPrime);
TableAddCol(ParserToken.ArrayPrime, '"',
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddCol(ParserToken.ArrayPrime, '[',
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddCol(ParserToken.ArrayPrime, ']',
']');
TableAddCol(ParserToken.ArrayPrime, '{',
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddCol(ParserToken.ArrayPrime, (int) ParserToken.Number,
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddCol(ParserToken.ArrayPrime, (int) ParserToken.True,
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddCol(ParserToken.ArrayPrime, (int) ParserToken.False,
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddCol(ParserToken.ArrayPrime, (int) ParserToken.Null,
(int) ParserToken.Value,
(int) ParserToken.ValueRest,
']');
TableAddRow(ParserToken.Object);
TableAddCol(ParserToken.Object, '{',
'{',
(int) ParserToken.ObjectPrime);
TableAddRow(ParserToken.ObjectPrime);
TableAddCol(ParserToken.ObjectPrime, '"',
(int) ParserToken.Pair,
(int) ParserToken.PairRest,
'}');
TableAddCol(ParserToken.ObjectPrime, '}',
'}');
TableAddRow(ParserToken.Pair);
TableAddCol(ParserToken.Pair, '"',
(int) ParserToken.String,
':',
(int) ParserToken.Value);
TableAddRow(ParserToken.PairRest);
TableAddCol(ParserToken.PairRest, ',',
',',
(int) ParserToken.Pair,
(int) ParserToken.PairRest);
TableAddCol(ParserToken.PairRest, '}',
(int) ParserToken.Epsilon);
TableAddRow(ParserToken.String);
TableAddCol(ParserToken.String, '"',
'"',
(int) ParserToken.CharSeq,
'"');
TableAddRow(ParserToken.Text);
TableAddCol(ParserToken.Text, '[',
(int) ParserToken.Array);
TableAddCol(ParserToken.Text, '{',
(int) ParserToken.Object);
TableAddRow(ParserToken.Value);
TableAddCol(ParserToken.Value, '"',
(int) ParserToken.String);
TableAddCol(ParserToken.Value, '[',
(int) ParserToken.Array);
TableAddCol(ParserToken.Value, '{',
(int) ParserToken.Object);
TableAddCol(ParserToken.Value, (int) ParserToken.Number,
(int) ParserToken.Number);
TableAddCol(ParserToken.Value, (int) ParserToken.True,
(int) ParserToken.True);
TableAddCol(ParserToken.Value, (int) ParserToken.False,
(int) ParserToken.False);
TableAddCol(ParserToken.Value, (int) ParserToken.Null,
(int) ParserToken.Null);
TableAddRow(ParserToken.ValueRest);
TableAddCol(ParserToken.ValueRest, ',',
',',
//.........这里部分代码省略.........
开发者ID:CraigTaylor,项目名称:App.Port,代码行数:101,代码来源:JsonReader.cs
示例6: SetUserData
internal void SetUserData(System.Collections.Generic.IDictionary<string, string> data)
{
if (data == null)
{
userData = new System.Collections.Generic.Dictionary<string,string>();
}
else
{
userData = data;
}
}
开发者ID:VirtueMe,项目名称:ravendb,代码行数:11,代码来源:SegmentInfos.cs
示例7: CheckMetaModelCompatibilityMessage
public CheckMetaModelCompatibilityMessage(string baseId, string sessionId, System.Collections.Generic.IDictionary
<string, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo> currentCIs) : base(NeoDatis.Odb.Core.Server.Layers.Layer3.Engine.Command
.CheckMetaModelCompatibility, baseId, sessionId)
{
this.currentCIs = currentCIs;
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:6,代码来源:CheckMetaModelCompatibilityMessage.cs
示例8: ConstantExpressionReplacementVisitor
public ConstantExpressionReplacementVisitor(
System.Collections.Generic.IDictionary<string, object> paramValues)
{
_paramValues = paramValues;
}
开发者ID:mwpowellhtx,项目名称:MicroMapper,代码行数:5,代码来源:MappingEngine.cs
示例9: 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
示例10: 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
示例11: 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
示例12: 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
示例13: Clear
public override void Clear(bool setToNull)
{
base.Clear(setToNull);
oidsOfNNoi.Clear();
if (setToNull)
{
oidsOfNNoi = null;
}
}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:9,代码来源:ServerCache.cs
示例14: 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
示例15: 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
示例16: 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
示例17: 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
示例18: 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
示例19: 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
示例20: 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;未经允许,请勿转载。 |
请发表评论