Exemple #1
0
        public XS_faqSubjectType[] HowToGetHere_fromRoot()
        {
            XS_faqSubjectType[] HowToGetHere_fromRoot_out;

            int c;
            XS_faqSubjectType _faqsubject_parent;

            #region HowToGetHere_fromRoot_out = new XS_faqSubjectType[...];
            _faqsubject_parent = this;
            c = 0;

            do
            {
                //_arraylist.Add(_faqsubject_parent.IDSubject);
                c++;
            } while ((_faqsubject_parent = parent_ref_faqSubjectTypeCollection[_faqsubject_parent.IDFAQSubject_parent]) != null);

            HowToGetHere_fromRoot_out = new XS_faqSubjectType[c];
            #endregion
            #region HowToGetHere_fromRoot_out[...] = ...;
            _faqsubject_parent = this;
            c = HowToGetHere_fromRoot_out.Length;

            do
            {
                c--;
                HowToGetHere_fromRoot_out[c] = _faqsubject_parent;
            } while ((_faqsubject_parent = parent_ref_faqSubjectTypeCollection[_faqsubject_parent.IDFAQSubject_parent]) != null);
            #endregion

            return(HowToGetHere_fromRoot_out);
        }
Exemple #2
0
		public XS_faqSubjectType[] HowToGetHere_fromRoot() {
			XS_faqSubjectType[] HowToGetHere_fromRoot_out;

			int c;
			XS_faqSubjectType _faqsubject_parent;
			#region HowToGetHere_fromRoot_out = new XS_faqSubjectType[...];
			_faqsubject_parent = this;
			c = 0;

			do {
				//_arraylist.Add(_faqsubject_parent.IDSubject);
				c++;
			} while ((_faqsubject_parent = parent_ref_faqSubjectTypeCollection[_faqsubject_parent.IDFAQSubject_parent]) != null);

			HowToGetHere_fromRoot_out = new XS_faqSubjectType[c];
			#endregion
			#region HowToGetHere_fromRoot_out[...] = ...;
			_faqsubject_parent = this;
			c = HowToGetHere_fromRoot_out.Length;

			do {
				c--;
				HowToGetHere_fromRoot_out[c] = _faqsubject_parent;
			} while ((_faqsubject_parent = parent_ref_faqSubjectTypeCollection[_faqsubject_parent.IDFAQSubject_parent]) != null);
			#endregion

			return HowToGetHere_fromRoot_out;
		}
Exemple #3
0
        public void CopyFrom(XS_faqSubjectType faqSubjectType_in)
        {
            int _index = -1;

            idfaqsubject_        = faqSubjectType_in.idfaqsubject_;
            idfaqsubject_parent_ = faqSubjectType_in.idfaqsubject_parent_;
            name_        = faqSubjectType_in.name_;
            description_ = faqSubjectType_in.description_;
            faqcollection_.Clear();
            for (int d = 0; d < faqSubjectType_in.faqcollection_.Count; d++)
            {
                faqcollection_.Add(
                    out _index,
                    new XS_faqType()
                    );
                faqcollection_[_index].CopyFrom(
                    faqSubjectType_in.faqcollection_[d]
                    );
            }
        }
Exemple #4
0
        public int Search(XS_faqSubjectType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_faqSubjectType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .IDFAQSubject
                        ==
                        collectionItem_in.IDFAQSubject
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
		public int Search(XS_faqSubjectType collectionItem_in) {
			for (int i = 0; i < cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_faqSubjectType)cols_[i])
						#else
						cols_[i]
						#endif
							.IDFAQSubject
						==
						collectionItem_in.IDFAQSubject
					)
					
				) {
					return i;
				}
			}

			return -1;
		}
Exemple #6
0
		public void CopyFrom(XS_faqSubjectType faqSubjectType_in) {
			int _index = -1;

			idfaqsubject_ = faqSubjectType_in.idfaqsubject_;
			idfaqsubject_parent_ = faqSubjectType_in.idfaqsubject_parent_;
			name_ = faqSubjectType_in.name_;
			description_ = faqSubjectType_in.description_;
			faqcollection_.Clear();
			for (int d = 0; d < faqSubjectType_in.faqcollection_.Count; d++) {
				faqcollection_.Add(
					out _index,
					new XS_faqType()
				);
				faqcollection_[_index].CopyFrom(
					faqSubjectType_in.faqcollection_[d]
				);
			}
		}