本文整理汇总了C#中MAPIInspector.Parsers.FastTransferStream.ReadCurrency方法的典型用法代码示例。如果您正苦于以下问题:C# FastTransferStream.ReadCurrency方法的具体用法?C# FastTransferStream.ReadCurrency怎么用?C# FastTransferStream.ReadCurrency使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MAPIInspector.Parsers.FastTransferStream
的用法示例。
在下文中一共展示了FastTransferStream.ReadCurrency方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Parse
/// <summary>
/// Parse next object from a FastTransferStream.
/// </summary>
/// <param name="stream">A FastTransferStream.</param>
public override void Parse(FastTransferStream stream)
{
base.Parse(stream);
PropertyDataType type = (PropertyDataType)this.PropType;
switch (type)
{
case PropertyDataType.PtypInteger16:
this.FixedValue = stream.ReadInt16();
break;
case PropertyDataType.PtypInteger32:
if (this.PropInfo.PropID == 0x67A4)
{
CN tmpCN = new CN();
tmpCN.Parse(stream);
this.FixedValue = tmpCN;
}
this.FixedValue = stream.ReadInt32();
break;
case PropertyDataType.PtypFloating32:
this.FixedValue = stream.ReadFloating32();
break;
case PropertyDataType.PtypFloating64:
this.FixedValue = stream.ReadFloating64();
break;
case PropertyDataType.PtypCurrency:
this.FixedValue = stream.ReadCurrency();
break;
case PropertyDataType.PtypFloatingTime:
this.FixedValue = stream.ReadFloatingTime();
break;
case PropertyDataType.PtypBoolean:
this.FixedValue = stream.ReadBoolean();
break;
case PropertyDataType.PtypInteger64:
if (base.PropInfo.PropID == 0x6714)
{
CN tmpCN = new CN();
tmpCN.Parse(stream);
this.FixedValue = tmpCN;
}
this.FixedValue = stream.ReadInt64();
break;
case PropertyDataType.PtypTime:
this.FixedValue = stream.ReadTime();
break;
case PropertyDataType.PtypGuid:
this.FixedValue = stream.ReadGuid();
break;
}
}