Use file scoped namespaces

This commit is contained in:
Peter Butzhammer
2024-02-07 09:54:18 +01:00
parent bacfbf05e2
commit e6cea1e04f
24 changed files with 1131 additions and 1191 deletions

View File

@@ -1,10 +1,9 @@
namespace Sharp7.Rx.Enums
namespace Sharp7.Rx.Enums;
public enum ConnectionState
{
public enum ConnectionState
{
Initial,
Connected,
DisconnectedByUser,
ConnectionLost
}
}
Initial,
Connected,
DisconnectedByUser,
ConnectionLost
}

View File

@@ -1,10 +1,9 @@
namespace Sharp7.Rx.Enums
namespace Sharp7.Rx.Enums;
internal enum CpuType
{
internal enum CpuType
{
S7_300,
S7_400,
S7_1200,
S7_1500
}
}
S7_300,
S7_400,
S7_1200,
S7_1500
}

View File

@@ -1,13 +1,12 @@
namespace Sharp7.Rx.Enums
namespace Sharp7.Rx.Enums;
internal enum DbType
{
internal enum DbType
{
Bit,
String,
Byte,
Double,
Integer,
DInteger,
ULong
}
}
Bit,
String,
Byte,
Double,
Integer,
DInteger,
ULong
}

View File

@@ -1,10 +1,9 @@
namespace Sharp7.Rx.Enums
namespace Sharp7.Rx.Enums;
internal enum Operand : byte
{
internal enum Operand : byte
{
Input = 69,
Output = 65,
Marker = 77,
Db = 68,
}
}
Input = 69,
Output = 65,
Marker = 77,
Db = 68,
}

View File

@@ -1,8 +1,7 @@
namespace Sharp7.Rx.Enums
namespace Sharp7.Rx.Enums;
public enum TransmissionMode
{
public enum TransmissionMode
{
Cyclic = 3,
OnChange = 4,
}
}
Cyclic = 3,
OnChange = 4,
}