Exemple #1
0
        /// <summary>
        /// Add (or retrieve) info about a virtual object flid.
        /// </summary>
        /// <param name="flid"></param>
        /// <param name="fSeq"></param>
        /// <param name="dstClass"></param>
        /// <returns></returns>
        public NeededPropertyInfo AddVirtualObjField(int flid, bool fSeq, int dstClass)
        {
            VirtualNeededPropertyInfo info =
                m_sequenceInfo.Find(delegate(NeededPropertyInfo item)
                                    { return(item.Source == flid); }) as VirtualNeededPropertyInfo;

            if (info == null)
            {
                info = new VirtualNeededPropertyInfo(flid, this, fSeq, dstClass);
                m_sequenceInfo.Add(info);
            }
            return(info);
        }
		/// <summary>
		/// Add (or retrieve) info about a virtual object flid.
		/// </summary>
		/// <param name="flid"></param>
		/// <param name="fSeq"></param>
		/// <param name="dstClass"></param>
		/// <returns></returns>
		public NeededPropertyInfo AddVirtualObjField(int flid, bool fSeq, int dstClass)
		{
			VirtualNeededPropertyInfo info =
				m_sequenceInfo.Find(delegate(NeededPropertyInfo item)
					{ return item.Source == flid; }) as VirtualNeededPropertyInfo;
			if (info == null)
			{
				info = new VirtualNeededPropertyInfo(flid, this, fSeq, dstClass);
				m_sequenceInfo.Add(info);
			}
			return info;
		}