完成OpcUaService对数据类型的读取
This commit is contained in:
48
DMS.Core/Enums/CSharpDataType.cs
Normal file
48
DMS.Core/Enums/CSharpDataType.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DMS.Core.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 定义了C#中常用的数据类型。
|
||||
/// </summary>
|
||||
public enum CSharpDataType
|
||||
{
|
||||
// 基本数值类型
|
||||
Bool,
|
||||
Byte,
|
||||
SByte,
|
||||
Short,
|
||||
UShort,
|
||||
Int,
|
||||
UInt,
|
||||
Long,
|
||||
ULong,
|
||||
Float,
|
||||
Double,
|
||||
Decimal,
|
||||
|
||||
// 字符和字符串类型
|
||||
Char,
|
||||
String,
|
||||
|
||||
// 时间相关类型
|
||||
DateTime,
|
||||
TimeSpan,
|
||||
DateTimeOffset,
|
||||
|
||||
// 其他常用类型
|
||||
Guid,
|
||||
Object,
|
||||
ByteArray,
|
||||
|
||||
// 可空类型标识
|
||||
Nullable,
|
||||
|
||||
// 未知类型
|
||||
Unknown
|
||||
}
|
||||
}
|
||||
@@ -16,24 +16,3 @@ public enum SignalType
|
||||
[Description("其他信号")] OtherASignal
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义了C#中常用的数据类型。
|
||||
/// </summary>
|
||||
public enum CSharpDataType
|
||||
{
|
||||
[Description("布尔型")] Bool,
|
||||
[Description("字节型")] Byte,
|
||||
[Description("短整型")] Short,
|
||||
[Description("无符号短整型")] UShort,
|
||||
[Description("整型")] Int,
|
||||
[Description("无符号整型")] UInt,
|
||||
[Description("长整型")] Long,
|
||||
[Description("无符号长整型")] ULong,
|
||||
[Description("浮点型")] Float,
|
||||
[Description("双精度浮点型")] Double,
|
||||
[Description("字符串型")] String,
|
||||
[Description("日期时间型")] DateTime,
|
||||
[Description("时间跨度型")] TimeSpan,
|
||||
[Description("对象型")] Object,
|
||||
[Description("未知类型")] Unknown
|
||||
}
|
||||
Reference in New Issue
Block a user