Example #1
0
        private TDerived CopyForInterval()
        {
            TDerived result = Clone();

            CesiumPropertyWriter <TDerived> cesiumPropertyWriter = result;

            cesiumPropertyWriter.m_elementType = ElementType.Interval;

            return(result);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance as a copy of an existing instance.
        /// </summary>
        /// <param name="existingInstance">The existing instance to copy.</param>
        protected CesiumPropertyWriter([NotNull] CesiumPropertyWriter <TDerived> existingInstance)
            : this()
        {
            if (existingInstance == null)
            {
                throw new ArgumentNullException("existingInstance");
            }

            m_propertyName = existingInstance.m_propertyName;
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance as a copy of an existing instance.
 /// </summary>
 /// <param name="existingInstance">The existing instance to copy.</param>
 protected CesiumPropertyWriter(CesiumPropertyWriter <TDerived> existingInstance)
     : this(existingInstance.m_propertyName)
 {
 }