Пример #1
0
        /// <summary>
        /// Add integer id to the Oid class
        /// </summary>
        /// <param name="oid1">Oid class to add id to</param>
        /// <param name="id">Id value to add to the oid</param>
        /// <returns>New Oid class with id added to the Oid class.</returns>
        public static Oid operator +(Oid oid1, int id)
        {
            Oid newoid = new Oid(oid1);

            newoid.Add(id);
            return(newoid);
        }
Пример #2
0
        /// <summary>
        /// Add Oid class value and oid represented as a string into a new Oid class instance
        /// </summary>
        /// <param name="oid">Oid class</param>
        /// <param name="strOids">string value representing an Oid</param>
        /// <returns>New Oid class with the new oid value.</returns>
        public static Oid operator +(Oid oid, string strOids)
        {
            Oid newoid = new Oid(oid);

            newoid.Add(strOids);
            return(newoid);
        }
Пример #3
0
        /// <summary>
        /// Add Oid class value and oid values in the integer array into a new class instance.
        /// </summary>
        /// <param name="oid">Oid class</param>
        /// <param name="ids">Integer array to add to the Oid</param>
        /// <returns>New Oid class with the two values added together</returns>
        public static Oid operator +(Oid oid, int[] ids)
        {
            Oid newoid = new Oid(oid);

            newoid.Add(ids);
            return(newoid);
        }
Пример #4
0
        /// <summary>
        ///     Add integer id to the Oid class
        /// </summary>
        /// <param name="oid1">Oid class to add id to</param>
        /// <param name="id">Id value to add to the oid</param>
        /// <returns>New Oid class with id added to the Oid class.</returns>
        public static Oid operator +(Oid oid1, uint id)
        {
            if ((object)oid1 == null)
            {
                return(null);
            }
            var newoid = new Oid(oid1);

            newoid.Add(id);
            return(newoid);
        }
Пример #5
0
        /// <summary>
        /// Add integer id to the Oid class
        /// </summary>
        /// <param name="oid1">Oid class to add id to</param>
        /// <param name="id">Id value to add to the oid</param>
        /// <returns>New Oid class with id added to the Oid class.</returns>
        public static Oid operator +(Oid oid1, UInt32 id)
        {
            if (((Object)oid1) == null)
            {
                return(null);
            }
            Oid newoid = new Oid(oid1);

            newoid.Add(id);
            return(newoid);
        }
Пример #6
0
        /// <summary>
        ///     Add Oid class value and oid represented as a string into a new Oid class instance
        /// </summary>
        /// <param name="oid">Oid class</param>
        /// <param name="strOids">string value representing an Oid</param>
        /// <returns>New Oid class with the new oid value.</returns>
        public static Oid operator +(Oid oid, string strOids)
        {
            if ((object)oid == null && (strOids == null || strOids.Length == 0))
            {
                return(null);
            }
            if (strOids == null || strOids.Length == 0)
            {
                return((Oid)oid.Clone());
            }
            var newoid = new Oid(oid);

            newoid.Add(strOids);
            return(newoid);
        }
Пример #7
0
        /// <summary>
        ///     Add Oid class value and oid values in the integer array into a new class instance.
        /// </summary>
        /// <param name="oid">Oid class</param>
        /// <param name="ids">Unsigned integer array to add to the Oid</param>
        /// <returns>New Oid class with the two values added together</returns>
        public static Oid operator +(Oid oid, uint[] ids)
        {
            if ((object)oid == null && ids == null)
            {
                return(null);
            }
            if (ids == null)
            {
                return((Oid)oid.Clone());
            }
            var newoid = new Oid(oid);

            newoid.Add(ids);
            return(newoid);
        }
Пример #8
0
        /// <summary>
        /// Add Oid class value and oid values in the integer array into a new class instance.
        /// </summary>
        /// <param name="oid">Oid class</param>
        /// <param name="ids">Unsigned integer array to add to the Oid</param>
        /// <returns>New Oid class with the two values added together</returns>
        public static Oid operator +(Oid oid, UInt32[] ids)
        {
            if (((Object)oid) == null && ((Object)ids) == null)
            {
                return(null);
            }
            if (((Object)ids) == null)
            {
                return((Oid)oid.Clone());
            }
            Oid newoid = new Oid(oid);

            newoid.Add(ids);
            return(newoid);
        }
Пример #9
0
        /// <summary>
        ///     Add two Oid values and return the new class
        /// </summary>
        /// <param name="oid1">First Oid</param>
        /// <param name="oid2">Second Oid</param>
        /// <returns>New class with two Oid values added.</returns>
        public static Oid operator +(Oid oid1, Oid oid2)
        {
            if ((object)oid1 == null && (object)oid2 == null)
            {
                return(null);
            }
            if ((object)oid2 == null || oid2.IsNull)
            {
                return((Oid)oid1.Clone());
            }
            if ((object)oid1 == null)
            {
                return((Oid)oid2.Clone());
            }
            var newoid = new Oid(oid1);

            newoid.Add(oid2);
            return(newoid);
        }