Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
 /// <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;
     }
 }
Exemplo n.º 3
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                SquareRootFunction s = (SquareRootFunction)obj;

                info.AddValue("BaseFunction", s._baseFunction);
            }
Exemplo n.º 4
0
 /// <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;
 }