mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
741 B
42 lines
741 B
#pragma once |
|
|
|
#include "Classes2.h" |
|
|
|
class Class |
|
{ |
|
public: |
|
void ReturnsVoid() {} |
|
int ReturnsInt() { return 0; } |
|
// Class* PassAndReturnsClassPtr(Class* obj) { return obj; } |
|
}; |
|
|
|
class ClassWithField |
|
{ |
|
public: |
|
ClassWithField() : Field(10) {} |
|
int Field; |
|
int ReturnsField() { return Field; } |
|
}; |
|
|
|
class ClassWithOverloads |
|
{ |
|
public: |
|
ClassWithOverloads() {} |
|
ClassWithOverloads(int) {} |
|
void Overload() {} |
|
void Overload(int) {} |
|
}; |
|
|
|
class ClassWithSingleInheritance : public Class |
|
{ |
|
public: |
|
int ChildMethod() { return 2; } |
|
}; |
|
|
|
class ClassWithExternalInheritance : public ClassFromAnotherUnit |
|
{ |
|
|
|
}; |
|
|
|
//void FunctionPassClassByRef(Class* klass) { } |
|
//Class* FunctionReturnsClassByRef() { return new Class(); }
|