Browse Source

Whitespace

pull/1/head
Alex Corrado 15 years ago
parent
commit
58659ff125
  1. 14
      src/Mono.VisualC.Interop/CppField.cs

14
src/Mono.VisualC.Interop/CppField.cs

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

Loading…
Cancel
Save