本文整理汇总了C#中Server.GenericReader.ReadAccount方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadAccount方法的具体用法?C# GenericReader.ReadAccount怎么用?C# GenericReader.ReadAccount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadAccount方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
if (version < 2)
{
WebForm = new DonationWebFormOptions();
}
switch (version)
{
case 4:
FallbackAccount = reader.ReadAccount();
goto case 3;
case 3:
CreditBonus = reader.ReadDouble();
goto case 2;
case 2:
WebForm = new DonationWebFormOptions(reader);
goto case 1;
case 1:
TierFactor = reader.ReadDouble();
goto case 0;
case 0:
{
if (version < 2)
{
new MySQLConnectionInfo(reader); // MySQL
_CurrencyType = new ItemTypeSelectProperty(reader); // CurrencyType
reader.ReadString(); // TableName
}
ShowHistory = reader.ReadBool();
if (version < 2)
{
CurrencyPrice = reader.ReadDouble(); // UnitPrice
}
MoneySymbol = reader.ReadChar();
if (version < 2)
{
MoneyAbbr = reader.ReadString(); // MoneyAbbr
reader.ReadBool(); // GiftingEnabled
}
}
break;
}
Info = new DonationStatistics();
}
示例2: Deserialize
public void Deserialize(GenericReader reader)
{
int version = reader.GetVersion();
switch (version)
{
case 0:
{
ID = reader.ReadString();
_State = reader.ReadFlag<DonationTransactionState>();
Account = reader.ReadAccount();
Email = reader.ReadString();
Total = reader.ReadDecimal();
_Credit = reader.ReadLong();
_Time = reader.ReadDouble();
Version = reader.ReadInt();
_InternalVersion = reader.ReadInt();
_Notes = reader.ReadString();
_Extra = reader.ReadString();
DeliverFrom = reader.ReadMobile();
DeliverTo = reader.ReadMobile();
DeliveryTime = reader.ReadDouble();
}
break;
}
}