diff --git a/src/Mono.VisualC.Interop/CppField.cs b/src/Mono.VisualC.Interop/CppField.cs index e6530650..aed2052b 100644 --- a/src/Mono.VisualC.Interop/CppField.cs +++ b/src/Mono.VisualC.Interop/CppField.cs @@ -38,8 +38,8 @@ namespace Mono.VisualC.Interop { this.fieldOffset = fieldOffset; } - public T this [CppInstancePtr ip] { - get { + public T this [CppInstancePtr ip] { + get { Type retType = typeof (T).IsEnum? Enum.GetUnderlyingType (typeof (T)) : typeof (T); object retVal; @@ -75,8 +75,8 @@ namespace Mono.VisualC.Interop { } return (T)retVal; - } - set { + } + set { Type setType = typeof (T).IsEnum? Enum.GetUnderlyingType (typeof (T)) : typeof (T); object setVal = value; @@ -104,7 +104,7 @@ namespace Mono.VisualC.Interop { throw new NotSupportedException ("Cannot write C++ fields of type " + setType.Name); } - } - } - } + } + } + } }