本文整理汇总了C#中Reader.ReadInt64方法的典型用法代码示例。如果您正苦于以下问题:C# Reader.ReadInt64方法的具体用法?C# Reader.ReadInt64怎么用?C# Reader.ReadInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reader
的用法示例。
在下文中一共展示了Reader.ReadInt64方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialise
// Deserialise properties and IDs
protected override void Deserialise(Reader In)
{
base.Deserialise(In);
_Start = new TimeSpan(In.ReadInt64());
_End = new TimeSpan(In.ReadInt64());
Name = In.ReadString();
Bookings = Enumerable.Repeat(new Booking(), In.ReadInt32()).ToList();
Bookings.ForEach(b => b.Id = In.ReadInt32());
}
示例2: Deserialise
// Deserialise from an input stream
protected override void Deserialise(Reader In)
{
base.Deserialise(In);
Ticks = In.ReadInt64();
BookingType = (BookingType)In.ReadInt32();
TimeSlot = new TimeSlot() { Id = In.ReadInt32() };
Rooms = new List<Room>(In.ReadInt32());
for (int x = 0; x < Rooms.Capacity; x++)
Rooms.Add(new Room() { Id = In.ReadInt32() });
Subject = new Subject() { Id = In.ReadInt32() };
Students = new List<Student>(In.ReadInt32());
for (int x = 0; x < Students.Capacity; x++)
Students.Add(new Student() { Id = In.ReadInt32() });
Teacher = new Teacher() { Id = In.ReadInt32() };
}