|
|
|
@ -198,20 +198,21 @@ namespace Cxxi.Generators.CLI |
|
|
|
WriteLine("{"); |
|
|
|
WriteLine("{"); |
|
|
|
WriteLine("public:"); |
|
|
|
WriteLine("public:"); |
|
|
|
|
|
|
|
|
|
|
|
if (!@class.IsValueType) |
|
|
|
var nativeType = string.Format("::{0}*", @class.OriginalName); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (@class.IsRefType) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PushIndent(); |
|
|
|
PushIndent(); |
|
|
|
var nativeType = string.Format("::{0}*", @class.OriginalName); |
|
|
|
|
|
|
|
WriteLine("property {0} NativePtr;", nativeType); |
|
|
|
WriteLine("property {0} NativePtr;", nativeType); |
|
|
|
PopIndent(); |
|
|
|
PopIndent(); |
|
|
|
NewLine(); |
|
|
|
NewLine(); |
|
|
|
|
|
|
|
|
|
|
|
// Output a default constructor that takes the native pointer.
|
|
|
|
|
|
|
|
PushIndent(); |
|
|
|
|
|
|
|
WriteLine("{0}({1} native);", SafeIdentifier(@class.Name), nativeType); |
|
|
|
|
|
|
|
PopIndent(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Output a default constructor that takes the native pointer.
|
|
|
|
|
|
|
|
PushIndent(); |
|
|
|
|
|
|
|
WriteLine("{0}({1} native);", SafeIdentifier(@class.Name), nativeType); |
|
|
|
|
|
|
|
PopIndent(); |
|
|
|
|
|
|
|
|
|
|
|
if (@class.IsValueType) |
|
|
|
if (@class.IsValueType) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PushIndent(); |
|
|
|
PushIndent(); |
|
|
|
|