本文整理汇总了C#中Runtime.ReadInt32方法的典型用法代码示例。如果您正苦于以下问题:C# Runtime.ReadInt32方法的具体用法?C# Runtime.ReadInt32怎么用?C# Runtime.ReadInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Runtime
的用法示例。
在下文中一共展示了Runtime.ReadInt32方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
{
_serversList = new Dictionary<int, Dom.CacheServer>();
int length = reader.ReadInt32();
for (int i = 0; i < length; i++)
{
int key = reader.ReadInt32();
ClientConfiguration.Dom.CacheServer value = reader.ReadObject() as ClientConfiguration.Dom.CacheServer;
_serversList.Add(key, value);
}
}
示例2: Deserialize
public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
{
_eventCounter = reader.ReadInt32();
_eventUniqueId = (string)reader.ReadObject();
_operationCounter = reader.ReadInt64();
_eventType = (EventType)reader.ReadInt32();
_queryId = (string)reader.ReadObject();
}
示例3: Deserialize
public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
{
_entry = reader.ReadObject() as CacheEntry;
_payLoadIndex = reader.ReadInt32();
}