diff --git a/MTC_Adapter/SCMA/AdapterGeneric.cs b/MTC_Adapter/SCMA/AdapterGeneric.cs
index 45262ce..55f6db5 100644
--- a/MTC_Adapter/SCMA/AdapterGeneric.cs
+++ b/MTC_Adapter/SCMA/AdapterGeneric.cs
@@ -615,7 +615,7 @@ namespace SCMA
lg.Info("Avvio preliminare AdapterGeneric");
currGateway = gatewayObj;
- lg.Info(string.Format("Impostato protocollo di comunicazione {0)", currGateway.protocollo));
+ lg.Info(string.Format("Impostato protocollo di comunicazione {0}", currGateway.protocollo));
procIotMem = utils.CRB("procIotMem");
diff --git a/MTC_Adapter/SCMA/EnumExtensions.cs b/MTC_Adapter/SCMA/EnumExtensions.cs
index 1f6cb15..d9cee78 100644
--- a/MTC_Adapter/SCMA/EnumExtensions.cs
+++ b/MTC_Adapter/SCMA/EnumExtensions.cs
@@ -3,92 +3,92 @@
namespace SCMA
{
- public static class EnumerationExtensions
+ public static class EnumerationExtensions
+ {
+
+ ///
+ /// checks if the value contains the provided type
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static bool Has(this System.Enum type, T value)
{
-
- ///
- /// checks if the value contains the provided type
- ///
- ///
- ///
- ///
- ///
- public static bool Has(this System.Enum type, T value)
- {
- try
- {
- return (((int)(object)type & (int)(object)value) == (int)(object)value);
- }
- catch
- {
- return false;
- }
- }
-
- ///
- /// checks if the value is only the provided type
- ///
- ///
- ///
- ///
- ///
- public static bool Is(this System.Enum type, T value)
- {
- try
- {
- return (int)(object)type == (int)(object)value;
- }
- catch
- {
- return false;
- }
- }
-
- ///
- /// appends a value
- ///
- ///
- ///
- ///
- ///
- public static T Add(this System.Enum type, T value)
- {
- try
- {
- return (T)(object)(((int)(object)type | (int)(object)value));
- }
- catch (Exception ex)
- {
- throw new ArgumentException(
- string.Format(
- "Could not append value from enumerated type '{0}'.",
- typeof(T).Name
- ), ex);
- }
- }
-
- ///
- /// completely removes the value
- ///
- ///
- ///
- ///
- ///
- public static T Remove(this System.Enum type, T value)
- {
- try
- {
- return (T)(object)(((int)(object)type & ~(int)(object)value));
- }
- catch (Exception ex)
- {
- throw new ArgumentException(
- string.Format(
- "Could not remove value from enumerated type '{0}'.",
- typeof(T).Name
- ), ex);
- }
- }
-
+ try
+ {
+ return (((int)(object)type & (int)(object)value) == (int)(object)value);
+ }
+ catch
+ {
+ return false;
+ }
}
+
+ ///
+ /// checks if the value is only the provided type
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static bool Is(this System.Enum type, T value)
+ {
+ try
+ {
+ return (int)(object)type == (int)(object)value;
+ }
+ catch
+ {
+ return false;
+ }
+ }
+
+ ///
+ /// appends a value
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static T Add(this System.Enum type, T value)
+ {
+ try
+ {
+ return (T)(object)(((int)(object)type | (int)(object)value));
+ }
+ catch (Exception ex)
+ {
+ throw new ArgumentException(
+ string.Format(
+ "Could not append value from enumerated type '{0}'.",
+ typeof(T).Name
+ ), ex);
+ }
+ }
+
+ ///
+ /// completely removes the value
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static T Remove(this System.Enum type, T value)
+ {
+ try
+ {
+ return (T)(object)(((int)(object)type & ~(int)(object)value));
+ }
+ catch (Exception ex)
+ {
+ throw new ArgumentException(
+ string.Format(
+ "Could not remove value from enumerated type '{0}'.",
+ typeof(T).Name
+ ), ex);
+ }
+ }
+
+ }
}
diff --git a/MTC_Adapter/SCMA/SCMA.csproj b/MTC_Adapter/SCMA/SCMA.csproj
index e20fe0c..285f61b 100644
--- a/MTC_Adapter/SCMA/SCMA.csproj
+++ b/MTC_Adapter/SCMA/SCMA.csproj
@@ -149,7 +149,6 @@
MainForm.cs
-