Exemplo n.º 1
0
Arquivo: Main.cs Projeto: zlorb/agnos
 public FeatureTest.Everything func_of_everything(Byte a,
                                                  short b, int c, long d, double e, bool f, DateTime g,
                                                  byte[] h, string i, IList <double> j, ICollection <int> k, IDictionary <int, string> l,
                                                  FeatureTest.Address m, FeatureTest.IPerson n, FeatureTest.MyEnum o)
 {
     return(new FeatureTest.Everything(a, b, c, d, e, f, g, h,
                                       i, j, k, l, m, n));
 }
Exemplo n.º 2
0
Arquivo: Main.cs Projeto: zlorb/agnos
 public Person(string name, FeatureTest.IPerson father,
               FeatureTest.IPerson mother)
 {
     this._name    = name;
     this._father  = (Person)father;
     this._mother  = (Person)mother;
     this._address = new FeatureTest.Address(
         FeatureTest.State.TX, "nashville", "woldorf", 1772);
     this._date_of_birth = new DateTime();
 }
Exemplo n.º 3
0
Arquivo: Main.cs Projeto: zlorb/agnos
 // methods
 public void marry(FeatureTest.IPerson partner)
 {
     if (spouse != null)
     {
         throw new FeatureTest.MartialStatusError(
                   "already married", this);
     }
     if (partner.spouse != null)
     {
         throw new FeatureTest.MartialStatusError(
                   "already married", partner);
     }
     if ((mother != null && mother == partner.mother) ||
         (father != null && father == partner.father))
     {
         throw new FeatureTest.MartialStatusError(
                   "siblings cannot marry", partner);
     }
     _spouse         = (Person)partner;
     _spouse._spouse = this;
 }
Exemplo n.º 4
0
Arquivo: Main.cs Projeto: zlorb/agnos
 public FeatureTest.IPerson Person_init(string name,
                                        FeatureTest.IPerson father,
                                        FeatureTest.IPerson mother)
 {
     return(new Person(name, father, mother));
 }