当前位置: 首页>>代码示例>>C#>>正文


C# IDataReader.ReadDouble方法代码示例

本文整理汇总了C#中IDataReader.ReadDouble方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.ReadDouble方法的具体用法?C# IDataReader.ReadDouble怎么用?C# IDataReader.ReadDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IDataReader的用法示例。


在下文中一共展示了IDataReader.ReadDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     byte flag1 = reader.ReadByte();
     enabled = BooleanByteWrapper.GetFlag(flag1, 0);
     abandonnedPaddock = BooleanByteWrapper.GetFlag(flag1, 1);
     level = reader.ReadByte();
     if ( level < 0 || level > 255 )
     {
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 255");
     }
     expLevelFloor = reader.ReadDouble();
     if ( expLevelFloor < 0 )
     {
         throw new Exception("Forbidden value on expLevelFloor = " + expLevelFloor + ", it doesn't respect the following condition : expLevelFloor < 0");
     }
     experience = reader.ReadDouble();
     if ( experience < 0 )
     {
         throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0");
     }
     expNextLevelFloor = reader.ReadDouble();
     if ( expNextLevelFloor < 0 )
     {
         throw new Exception("Forbidden value on expNextLevelFloor = " + expNextLevelFloor + ", it doesn't respect the following condition : expNextLevelFloor < 0");
     }
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:26,代码来源:GuildInformationsGeneralMessage.cs

示例2: Deserialize

 public virtual void Deserialize(IDataReader reader)
 {
     jobId = reader.ReadSByte();
     if ( jobId < 0 )
     {
         throw new Exception("Forbidden value on jobId = " + jobId + ", it doesn't respect the following condition : jobId < 0");
     }
     jobLevel = reader.ReadSByte();
     if ( jobLevel < 0 )
     {
         throw new Exception("Forbidden value on jobLevel = " + jobLevel + ", it doesn't respect the following condition : jobLevel < 0");
     }
     jobXP = reader.ReadDouble();
     if ( jobXP < 0 )
     {
         throw new Exception("Forbidden value on jobXP = " + jobXP + ", it doesn't respect the following condition : jobXP < 0");
     }
     jobXpLevelFloor = reader.ReadDouble();
     if ( jobXpLevelFloor < 0 )
     {
         throw new Exception("Forbidden value on jobXpLevelFloor = " + jobXpLevelFloor + ", it doesn't respect the following condition : jobXpLevelFloor < 0");
     }
     jobXpNextLevelFloor = reader.ReadDouble();
     if ( jobXpNextLevelFloor < 0 )
     {
         throw new Exception("Forbidden value on jobXpNextLevelFloor = " + jobXpNextLevelFloor + ", it doesn't respect the following condition : jobXpNextLevelFloor < 0");
     }
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:28,代码来源:JobExperience.cs

示例3: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     experienceCharacter = reader.ReadDouble();
     if (experienceCharacter < 0)
         throw new Exception("Forbidden value on experienceCharacter = " + experienceCharacter + ", it doesn't respect the following condition : experienceCharacter < 0");
     experienceMount = reader.ReadDouble();
     if (experienceMount < 0)
         throw new Exception("Forbidden value on experienceMount = " + experienceMount + ", it doesn't respect the following condition : experienceMount < 0");
     experienceGuild = reader.ReadDouble();
     if (experienceGuild < 0)
         throw new Exception("Forbidden value on experienceGuild = " + experienceGuild + ", it doesn't respect the following condition : experienceGuild < 0");
     experienceIncarnation = reader.ReadDouble();
     if (experienceIncarnation < 0)
         throw new Exception("Forbidden value on experienceIncarnation = " + experienceIncarnation + ", it doesn't respect the following condition : experienceIncarnation < 0");
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:15,代码来源:CharacterExperienceGainMessage.cs

示例4: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     byte flag1 = reader.ReadByte();
     showExperience = BooleanByteWrapper.GetFlag(flag1, 0);
     showExperienceLevelFloor = BooleanByteWrapper.GetFlag(flag1, 1);
     showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(flag1, 2);
     showExperienceFightDelta = BooleanByteWrapper.GetFlag(flag1, 3);
     showExperienceForGuild = BooleanByteWrapper.GetFlag(flag1, 4);
     showExperienceForMount = BooleanByteWrapper.GetFlag(flag1, 5);
     isIncarnationExperience = BooleanByteWrapper.GetFlag(flag1, 6);
     experience = reader.ReadDouble();
     if (experience < 0)
         throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0");
     experienceLevelFloor = reader.ReadDouble();
     if (experienceLevelFloor < 0)
         throw new Exception("Forbidden value on experienceLevelFloor = " + experienceLevelFloor + ", it doesn't respect the following condition : experienceLevelFloor < 0");
     experienceNextLevelFloor = reader.ReadDouble();
     if (experienceNextLevelFloor < 0)
         throw new Exception("Forbidden value on experienceNextLevelFloor = " + experienceNextLevelFloor + ", it doesn't respect the following condition : experienceNextLevelFloor < 0");
     experienceFightDelta = reader.ReadInt();
     experienceForGuild = reader.ReadInt();
     if (experienceForGuild < 0)
         throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0");
     experienceForMount = reader.ReadInt();
     if (experienceForMount < 0)
         throw new Exception("Forbidden value on experienceForMount = " + experienceForMount + ", it doesn't respect the following condition : experienceForMount < 0");
     rerollExperienceMul = reader.ReadInt();
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:29,代码来源:FightResultExperienceData.cs

示例5: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     breed = reader.ReadSByte();
     sex = reader.ReadBoolean();
     rank = reader.ReadShort();
     if (rank < 0)
         throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0");
     givenExperience = reader.ReadDouble();
     if (givenExperience < 0)
         throw new Exception("Forbidden value on givenExperience = " + givenExperience + ", it doesn't respect the following condition : givenExperience < 0");
     experienceGivenPercent = reader.ReadSByte();
     if (experienceGivenPercent < 0 || experienceGivenPercent > 100)
         throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100");
     rights = reader.ReadUInt();
     if (rights < 0 || rights > 4294967295)
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
     connected = reader.ReadSByte();
     if (connected < 0)
         throw new Exception("Forbidden value on connected = " + connected + ", it doesn't respect the following condition : connected < 0");
     alignmentSide = reader.ReadSByte();
     hoursSinceLastConnection = reader.ReadUShort();
     if (hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535)
         throw new Exception("Forbidden value on hoursSinceLastConnection = " + hoursSinceLastConnection + ", it doesn't respect the following condition : hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535");
     moodSmileyId = reader.ReadSByte();
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     achievementPoints = reader.ReadInt();
     status = Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:32,代码来源:GuildMember.cs

示例6: Deserialize

 public virtual void Deserialize(IDataReader reader)
 {
     pctbonus = reader.ReadInt();
     if (pctbonus < 0)
         throw new Exception("Forbidden value on pctbonus = " + pctbonus + ", it doesn't respect the following condition : pctbonus < 0");
     grademult = reader.ReadDouble();
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:7,代码来源:AlignmentBonusInformations.cs

示例7: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     fightId = reader.ReadDouble();
     fighterToRemoveId = reader.ReadInt();
     if (fighterToRemoveId < 0)
         throw new Exception("Forbidden value on fighterToRemoveId = " + fighterToRemoveId + ", it doesn't respect the following condition : fighterToRemoveId < 0");
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:7,代码来源:PrismFightAttackerRemoveMessage.cs

示例8: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     maxPods = reader.ReadShort();
     if (maxPods < 0)
         throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0");
     prospecting = reader.ReadShort();
     if (prospecting < 0)
         throw new Exception("Forbidden value on prospecting = " + prospecting + ", it doesn't respect the following condition : prospecting < 0");
     wisdom = reader.ReadShort();
     if (wisdom < 0)
         throw new Exception("Forbidden value on wisdom = " + wisdom + ", it doesn't respect the following condition : wisdom < 0");
     taxCollectorsCount = reader.ReadSByte();
     if (taxCollectorsCount < 0)
         throw new Exception("Forbidden value on taxCollectorsCount = " + taxCollectorsCount + ", it doesn't respect the following condition : taxCollectorsCount < 0");
     taxCollectorAttack = reader.ReadInt();
     kamas = reader.ReadInt();
     if (kamas < 0)
         throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0");
     experience = reader.ReadDouble();
     if (experience < 0)
         throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0");
     pods = reader.ReadInt();
     if (pods < 0)
         throw new Exception("Forbidden value on pods = " + pods + ", it doesn't respect the following condition : pods < 0");
     itemsValue = reader.ReadInt();
     if (itemsValue < 0)
         throw new Exception("Forbidden value on itemsValue = " + itemsValue + ", it doesn't respect the following condition : itemsValue < 0");
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:29,代码来源:TaxCollectorDialogQuestionExtendedMessage.cs

示例9: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     fightId = reader.ReadDouble();
     fighterMovementInformations = new Types.CharacterMinimalPlusLookAndGradeInformations();
     fighterMovementInformations.Deserialize(reader);
     inMain = reader.ReadBoolean();
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:7,代码来源:PrismFightDefenderAddMessage.cs

示例10: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     banEndDate = reader.ReadDouble();
     if (banEndDate < 0)
         throw new Exception("Forbidden value on banEndDate = " + banEndDate + ", it doesn't respect the following condition : banEndDate < 0");
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:7,代码来源:IdentificationFailedBannedMessage.cs

示例11: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     byte flag1 = reader.ReadByte();
     hasRights = BooleanByteWrapper.GetFlag(flag1, 0);
     wasAlreadyConnected = BooleanByteWrapper.GetFlag(flag1, 1);
     login = reader.ReadUTF();
     nickname = reader.ReadUTF();
     accountId = reader.ReadInt();
     if ( accountId < 0 )
     {
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     }
     communityId = reader.ReadSByte();
     if ( communityId < 0 )
     {
         throw new Exception("Forbidden value on communityId = " + communityId + ", it doesn't respect the following condition : communityId < 0");
     }
     secretQuestion = reader.ReadUTF();
     subscriptionEndDate = reader.ReadDouble();
     if ( subscriptionEndDate < 0 )
     {
         throw new Exception("Forbidden value on subscriptionEndDate = " + subscriptionEndDate + ", it doesn't respect the following condition : subscriptionEndDate < 0");
     }
     accountCreation = reader.ReadDouble();
     if ( accountCreation < 0 )
     {
         throw new Exception("Forbidden value on accountCreation = " + accountCreation + ", it doesn't respect the following condition : accountCreation < 0");
     }
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:29,代码来源:IdentificationSuccessMessage.cs

示例12: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     emoteId = reader.ReadSByte();
     if (emoteId < 0)
         throw new Exception("Forbidden value on emoteId = " + emoteId + ", it doesn't respect the following condition : emoteId < 0");
     emoteStartTime = reader.ReadDouble();
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:7,代码来源:EmotePlayAbstractMessage.cs

示例13: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     fightId = reader.ReadDouble();
     if (fightId < 0)
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     playerInfo = new Types.CharacterMinimalPlusLookInformations();
     playerInfo.Deserialize(reader);
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:8,代码来源:GuildFightPlayersHelpersJoinMessage.cs

示例14: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     rideId = reader.ReadDouble();
     int limit = reader.ReadUShort();
     boostToUpdateList = new Types.UpdateMountBoost[limit];
     for (int i = 0; i < limit; i++)
     {
         (boostToUpdateList as Types.UpdateMountBoost[])[i] = Types.ProtocolTypeManager.GetInstance<Types.UpdateMountBoost>(reader.ReadShort());
         (boostToUpdateList as Types.UpdateMountBoost[])[i].Deserialize(reader);
     }
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:11,代码来源:UpdateMountBoostMessage.cs

示例15: Deserialize

 public override void Deserialize(IDataReader reader)
 {
     fightId = reader.ReadDouble();
     var limit = reader.ReadUShort();
     charactersDescription = new Types.CharacterMinimalPlusLookAndGradeInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          charactersDescription[i] = new Types.CharacterMinimalPlusLookAndGradeInformations();
          charactersDescription[i].Deserialize(reader);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:11,代码来源:PrismFightAttackerAddMessage.cs


注:本文中的IDataReader.ReadDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。