public XS_subjectType[] HowToGetHere_fromRoot() { XS_subjectType[] HowToGetHere_fromRoot_out; int c; XS_subjectType _subject_parent; #region HowToGetHere_fromRoot_out = new XS_subjectType[...]; _subject_parent = this; c = 0; do { //_arraylist.Add(_subject_parent.IDSubject); c++; } while ((_subject_parent = parent_ref_subjectTypeCollection[_subject_parent.IDSubject_parent]) != null); HowToGetHere_fromRoot_out = new XS_subjectType[c]; #endregion #region HowToGetHere_fromRoot_out[...] = ...; _subject_parent = this; c = HowToGetHere_fromRoot_out.Length; do { c--; HowToGetHere_fromRoot_out[c] = _subject_parent; } while ((_subject_parent = parent_ref_subjectTypeCollection[_subject_parent.IDSubject_parent]) != null); #endregion return(HowToGetHere_fromRoot_out); }
public XS_subjectType[] HowToGetHere_fromRoot() { XS_subjectType[] HowToGetHere_fromRoot_out; int c; XS_subjectType _subject_parent; #region HowToGetHere_fromRoot_out = new XS_subjectType[...]; _subject_parent = this; c = 0; do { //_arraylist.Add(_subject_parent.IDSubject); c++; } while ((_subject_parent = parent_ref_subjectTypeCollection[_subject_parent.IDSubject_parent]) != null); HowToGetHere_fromRoot_out = new XS_subjectType[c]; #endregion #region HowToGetHere_fromRoot_out[...] = ...; _subject_parent = this; c = HowToGetHere_fromRoot_out.Length; do { c--; HowToGetHere_fromRoot_out[c] = _subject_parent; } while ((_subject_parent = parent_ref_subjectTypeCollection[_subject_parent.IDSubject_parent]) != null); #endregion return HowToGetHere_fromRoot_out; }
public void CopyFrom(XS_subjectType subjectType_in) { int _index = -1; idsubject_ = subjectType_in.idsubject_; idsubject_parent_ = subjectType_in.idsubject_parent_; name_ = subjectType_in.name_; description_ = subjectType_in.description_; if (subjectType_in.documents__ != null) { documents__.CopyFrom(subjectType_in.documents__); } }
public int Search(XS_subjectType collectionItem_in) { for (int i = 0; i < cols_.Count; i++) { if ( ( #if NET_1_1 ((XS_subjectType)cols_[i]) #else cols_[i] #endif .IDSubject == collectionItem_in.IDSubject ) ) { return(i); } } return(-1); }
public void CopyFrom(XS_subjectType subjectType_in) { int _index = -1; idsubject_ = subjectType_in.idsubject_; idsubject_parent_ = subjectType_in.idsubject_parent_; name_ = subjectType_in.name_;description_ = subjectType_in.description_; if (subjectType_in.documents__ != null) documents__.CopyFrom(subjectType_in.documents__); }
public int Search(XS_subjectType collectionItem_in) { for (int i = 0; i < cols_.Count; i++) { if ( ( #if NET_1_1 ((XS_subjectType)cols_[i]) #else cols_[i] #endif .IDSubject == collectionItem_in.IDSubject ) ) { return i; } } return -1; }