Skip to content

Commit 88d6fb4

Browse files
committed
Refactor MethodReturnValue.
1 parent 025bba8 commit 88d6fb4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

NetLeaf.Bridge/MethodReturnValue.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
namespace NetLeaf.Bridge;
44

5-
// Struct for passing a methods return value back to C++
5+
/// <summary>
6+
/// Struct used for safetly passing a methods return value to unmanaged code.
7+
/// </summary>
68
[StructLayout(LayoutKind.Sequential)]
79
public struct MethodReturnValue
810
{
9-
public IntPtr StringResult; // Pointer to marshaled string
11+
public IntPtr StringResult;
1012
public float FloatResult;
1113
public uint UIntResult;
1214
public int IntResult;
1315

14-
public ReturnType Type; // Indicate the type of the return value
16+
public ReturnType Type;
1517
}
1618

1719
public enum ReturnType : int

0 commit comments

Comments
 (0)