Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
@ -1071,6 +1071,7 @@ namespace CppSharp.Generators.CSharp
if (prop.Parameters.Count > 0 && prop.Type.IsPointerToPrimitiveType())
type = ((PointerType) prop.Type).Pointee;
GenerateDeclarationCommon(prop);
if (prop.ExplicitInterfaceImpl == null)
{
Write(Helpers.GetAccess(prop.Access));
@ -82,7 +82,7 @@ namespace CppSharp.Passes
instance.Namespace = @interface;
instance.Name = Helpers.InstanceIdentifier;
instance.QualifiedType = new QualifiedType(new BuiltinType(PrimitiveType.IntPtr));
instance.GetMethod = new Method();
instance.GetMethod = new Method { Namespace = @interface };
@interface.Properties.Add(instance);
}