/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected SimpleDataModalityLut(SimpleDataModalityLut source, ICloningContext context) { context.CloneFields(source, this); //clone the actual buffer _data = (double[]) source._data.Clone(); }
/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected SimpleDataModalityLut(SimpleDataModalityLut source, ICloningContext context) { context.CloneFields(source, this); //clone the actual buffer _data = (double[])source._data.Clone(); }