public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { SquareRootFunction s = null != o ? (SquareRootFunction)o : new SquareRootFunction(); s._baseFunction = (Altaxo.Calc.IScalarFunctionDD)info.GetValue("BaseFunction", s); return(s); }
/// <summary> /// Copy constructor. /// </summary> /// <param name="from">Another polynomial function to clone from.</param> public SquareRootFunction(SquareRootFunction from) { if (from._baseFunction is ICloneable) { this._baseFunction = (Altaxo.Calc.IScalarFunctionDD)((ICloneable)from._baseFunction).Clone(); } else { this._baseFunction = from._baseFunction; } }
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { SquareRootFunction s = (SquareRootFunction)obj; info.AddValue("BaseFunction", s._baseFunction); }
/// <summary> /// Copy constructor. /// </summary> /// <param name="from">Another polynomial function to clone from.</param> public SquareRootFunction(SquareRootFunction from) { if (from._baseFunction is ICloneable) this._baseFunction = (Altaxo.Calc.IScalarFunctionDD)((ICloneable)from._baseFunction).Clone(); else this._baseFunction = from._baseFunction; }