|
|
|
|
@ -23,7 +23,6 @@ namespace Mono.VisualC.Interop {
@@ -23,7 +23,6 @@ namespace Mono.VisualC.Interop {
|
|
|
|
|
get { |
|
|
|
|
Type retType = typeof (T); |
|
|
|
|
object retVal; |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
if (retType.Equals (typeof (Byte))) |
|
|
|
|
retVal = Marshal.ReadByte (ip.Native, fieldOffset); |
|
|
|
|
else if (retType.Equals (typeof (Int16))) |
|
|
|
|
@ -32,16 +31,6 @@ namespace Mono.VisualC.Interop {
@@ -32,16 +31,6 @@ namespace Mono.VisualC.Interop {
|
|
|
|
|
retVal = Marshal.ReadInt32 (ip.Native, fieldOffset); |
|
|
|
|
else throw new NotImplementedException ("Cannot read C++ fields of type " + retType.Name); |
|
|
|
|
|
|
|
|
|
======= |
|
|
|
|
if (retType.Equals (typeof (Byte))) |
|
|
|
|
retVal = Marshal.ReadByte (ip.Native, fieldOffset); |
|
|
|
|
else if (retType.Equals (typeof (Int16))) |
|
|
|
|
retVal = Marshal.ReadInt16 (ip.Native, fieldOffset); |
|
|
|
|
else if (retType.Equals (typeof (Int32))) |
|
|
|
|
retVal = Marshal.ReadInt32 (ip.Native, fieldOffset); |
|
|
|
|
else throw new NotImplementedException ("Cannot read C++ fields of type " + retType.Name); |
|
|
|
|
|
|
|
|
|
>>>>>>> Refactored and completed managed VTable implementation. Prepared for |
|
|
|
|
return (T)retVal; |
|
|
|
|
} |
|
|
|
|
set { |
|
|
|
|
|