Ejemplo n.º 1
0
        public void CopyFrom(XS_templateType templateType_in)
        {
            int _index = -1;

            id_            = templateType_in.id_;
            name_          = templateType_in.name_;
            parsertype_    = templateType_in.parsertype_;
            iterationtype_ = templateType_in.iterationtype_;
            if (templateType_in.arguments__ != null)
            {
                arguments__.CopyFrom(templateType_in.arguments__);
            }
            if (templateType_in.conditions__ != null)
            {
                conditions__.CopyFrom(templateType_in.conditions__);
            }
            if (templateType_in.outputs__ != null)
            {
                outputs__.CopyFrom(templateType_in.outputs__);
            }
            if (templateType_in.dependencies__ != null)
            {
                dependencies__.CopyFrom(templateType_in.dependencies__);
            }
        }
Ejemplo n.º 2
0
        public int Search(XS_templateType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_templateType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .ID
                        ==
                        collectionItem_in.ID
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
Ejemplo n.º 3
0
		public void CopyFrom(XS_templateType templateType_in) {
			int _index = -1;

			id_ = templateType_in.id_;
			name_ = templateType_in.name_;
			parsertype_ = templateType_in.parsertype_;
			iterationtype_ = templateType_in.iterationtype_;
			if (templateType_in.arguments__ != null) arguments__.CopyFrom(templateType_in.arguments__);
			if (templateType_in.conditions__ != null) conditions__.CopyFrom(templateType_in.conditions__);
			if (templateType_in.outputs__ != null) outputs__.CopyFrom(templateType_in.outputs__);
			if (templateType_in.dependencies__ != null) dependencies__.CopyFrom(templateType_in.dependencies__);
		}
Ejemplo n.º 4
0
		public int Search(XS_templateType collectionItem_in) {
			for (int i = 0; i < cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_templateType)cols_[i])
						#else
						cols_[i]
						#endif
							.ID
						==
						collectionItem_in.ID
					)
					
				) {
					return i;
				}
			}

			return -1;
		}