~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Examples/test-suite/csharp_features.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%module csharp_features
 
2
 
 
3
// SWIG gets the method modifiers wrong occasionally, like with private inheritance, %csmethodmodifiers can fix this
 
4
%csmethodmodifiers Derived::VirtualMethod() "public virtual"
 
5
%csmethodmodifiers MoreDerived::variable "public new"
 
6
 
 
7
%inline %{
 
8
class Base {
 
9
public:
 
10
  virtual ~Base() {}
 
11
  virtual void VirtualMethod() {}
 
12
};
 
13
class Derived : private Base {
 
14
public:
 
15
  virtual void VirtualMethod() {}
 
16
  int variable;
 
17
};
 
18
class MoreDerived : public Derived {
 
19
public:
 
20
  int variable;
 
21
};
 
22
%}
 
23