本文整理汇总了C#中IDataReader.AsDouble方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.AsDouble方法的具体用法?C# IDataReader.AsDouble怎么用?C# IDataReader.AsDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataReader
的用法示例。
在下文中一共展示了IDataReader.AsDouble方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Get
public override void Get(FieldDescriptor ds_, IDataReader dr_)
{
switch( ds_.Pos )
{
case 0: Str = dr_.AsString(); break;
case 1: Date = dr_.AsBytes(); break;
case 2: dr_.AsMessage(_msg??(Msg = new Any()), ds_); break;
case 3: Name = dr_.AsString(); break;
case 4: I32 = dr_.AsInt(); break;
case 5: Bol = dr_.AsBool(); break;
case 6: Cha = dr_.AsChar(); break;
case 7: Si3 = dr_.AsSi32(); break;
case 8: Fx3 = (uint)dr_.AsBit32(); break;
case 9: Ui64 = (ulong)dr_.AsLong(); break;
case 10: Si64 = dr_.AsSi64(); break;
case 11: I64 = dr_.AsLong(); break;
case 12: Dbl = dr_.AsDouble(); break;
case 13: Flt = dr_.AsFloat(); break;
case 14: Dat = dr_.AsDate(); break;
}
}
示例2: Get
public override void Get(FieldDescriptor ds_, IDataReader dr_)
{
switch( ds_.Pos )
{
case 0: I32 = dr_.AsInt(); break;
case 1: I64 = dr_.AsLong(); break;
case 2: Str = dr_.AsString(); break;
case 3: Bts = dr_.AsBytes(); break;
case 4: Bln = dr_.AsBool(); break;
case 5: Flt = dr_.AsFloat(); break;
case 6: Cur = dr_.AsCurrency(); break;
case 7: Dbl = dr_.AsDouble(); break;
case 8: Dat = dr_.AsDate(); break;
case 9: Si32 = dr_.AsSi32(); break;
case 10: Si64 = dr_.AsSi64(); break;
case 11: Ui32 = (uint)dr_.AsInt(); break;
case 12: Ui64 = (ulong)dr_.AsLong(); break;
case 13: Dec = dr_.AsDecimal(); break;
case 14: Chr = dr_.AsChar(); break;
case 15: Enu = (Colors)dr_.AsEnum(EnumDescriptors.Colors); break;
case 16: F32 = (uint)dr_.AsBit32(); break;
case 17: F64 = (ulong)dr_.AsBit64(); break;
}
}
示例3: Get
public override void Get(FieldDescriptor ds_, IDataReader dr_)
{
Value = dr_.AsDouble();
}