请教个问题 看怎么获得这里的值呢??
namespace Microsoft.SensorServices.Rfid.Dspi
{
[Serializable]
public struct SourceType : IEquatable <SourceType>
{
public static readonly SourceType Antenna;
public static readonly SourceType IOPort;
public static readonly SourceType Uninitialized;
public SourceType(int value, string description);
public static bool operator !=(SourceType providerCapability1, SourceType providerCapability2);
public static bool operator ==(SourceType providerCapability1, SourceType providerCapability2);
public static explicit operator SourceType(int value);
public string Description { get; }
public bool IsContinuousIO { get; }
public bool IsRfid { get; }
public bool IsVendorDefined { get; }
public int Value { get; }
public override bool Equals(object obj);
public bool Equals(SourceType other);
public override int GetHashCode();
public override string ToString();
}
}
上面是SourceType 的原形,现在想在某个函数里,来获得SourceType的 Antenna
值或 属性, 该怎么处理, 下面的处理不对的
case SourcePropertyGroup.Enabled:
{
para[19]=SourceType.Antenna;
break;
}
------解决方案--------------------看着有点晕...
这个结构体是你自己写的,还是别人提供给你的?
------解决方案--------------------...