Example #1
0
        public int Search(XS_classType collectionItem_in)
        {
            for (int i = 0; i < this.cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_classType)this.cols_[i])
                                                #else
                        this.cols_[i]
                                                #endif
                        .Name.Equals(
                            collectionItem_in.Name,
                            StringComparison.CurrentCultureIgnoreCase
                            )
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
Example #2
0
 public void CopyFrom(XS_classType classType_in)
 {
     this.name_      = classType_in.name_;
     this.type_      = classType_in.type_;
     this.namespace_ = classType_in.namespace_;
     if (classType_in.methods__ != null)
     {
         this.methods__.CopyFrom(classType_in.methods__);
     }
 }
Example #3
0
        public void CopyFrom(XS_classType classType_in)
        {
            int _index = -1;

            name_ = classType_in.name_;
            type_ = classType_in.type_;
            if (classType_in.methods__ != null)
            {
                methods__.CopyFrom(classType_in.methods__);
            }
        }
Example #4
0
        public int Search(XS_classType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_classType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .Name.ToLower()
                        ==
                        collectionItem_in.Name.ToLower()
                    )

                    )
                {
                    return(i);
                }
            }

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

			return -1;
		}
Example #6
0
		public void CopyFrom(XS_classType classType_in) {
			int _index = -1;

			name_ = classType_in.name_;
			type_ = classType_in.type_;
			if (classType_in.methods__ != null) methods__.CopyFrom(classType_in.methods__);
		}
Example #7
0
		public void CopyFrom(XS_classType classType_in) {
			this.name_ = classType_in.name_;
			this.type_ = classType_in.type_;
			this.namespace_ = classType_in.namespace_;
			if (classType_in.methods__ != null) this.methods__.CopyFrom(classType_in.methods__);
		}