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)); }
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(); }
// 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; }
public FeatureTest.IPerson Person_init(string name, FeatureTest.IPerson father, FeatureTest.IPerson mother) { return(new Person(name, father, mother)); }