Esempio n. 1
0
        public int Search(XS_metadataIndexType collectionItem_in)
        {
            for (int i = 0; i < this.cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_metadataIndexType)this.cols_[i])
                                                #else
                        this.cols_[i]
                                                #endif
                        .Metadata.Equals(
                            collectionItem_in.Metadata,
                            StringComparison.CurrentCulture
                            )
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
Esempio n. 2
0
        public void CopyFrom(XS_metadataIndexType metadataIndexType_in)
        {
            int _index = -1;

            metadata_ = metadataIndexType_in.metadata_;
            index_    = metadataIndexType_in.index_;
            specificcasecollection_.Clear();
            for (int d = 0; d < metadataIndexType_in.specificcasecollection_.Count; d++)
            {
                specificcasecollection_.Add(
                    out _index,
                    new XS_specificCaseType()
                    );
                specificcasecollection_[_index].CopyFrom(
                    metadataIndexType_in.specificcasecollection_[d]
                    );
            }
            complextypecollection_.Clear();
            for (int d = 0; d < metadataIndexType_in.complextypecollection_.Count; d++)
            {
                complextypecollection_.Add(
                    out _index,
                    new XS_complexTypeType()
                    );
                complextypecollection_[_index].CopyFrom(
                    metadataIndexType_in.complextypecollection_[d]
                    );
            }
        }
Esempio n. 3
0
        public int Search(XS_metadataIndexType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_metadataIndexType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .Metadata
                        ==
                        collectionItem_in.Metadata
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
Esempio n. 4
0
		public void CopyFrom(XS_metadataIndexType metadataIndexType_in) {
			int _index = -1;

			this.metadata_ = metadataIndexType_in.metadata_;
			this.namespace_ = metadataIndexType_in.namespace_;
			this.index_ = metadataIndexType_in.index_;
			this.specificcasecollection_.Clear();
			for (int d = 0; d < metadataIndexType_in.specificcasecollection_.Count; d++) {
				this.specificcasecollection_.Add(
					out _index,
					new XS_specificCaseType()
				);
				this.specificcasecollection_[_index].CopyFrom(
					metadataIndexType_in.specificcasecollection_[d]
				);
			}
			this.complextypecollection_.Clear();
			for (int d = 0; d < metadataIndexType_in.complextypecollection_.Count; d++) {
				this.complextypecollection_.Add(
					out _index,
					new XS_complexTypeType()
				);
				this.complextypecollection_[_index].CopyFrom(
					metadataIndexType_in.complextypecollection_[d]
				);
			}
		}
		public int Search(XS_metadataIndexType collectionItem_in) {
			for (int i = 0; i < this.cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_metadataIndexType)this.cols_[i])
						#else
						this.cols_[i]
						#endif
							.Metadata.Equals(
								collectionItem_in.Metadata,
								StringComparison.CurrentCulture
							)
					)
					
				) {
					return i;
				}
			}

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

			return -1;
		}