예제 #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);
            }
예제 #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;
     }
 }
예제 #3
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                SquareRootFunction s = (SquareRootFunction)obj;

                info.AddValue("BaseFunction", s._baseFunction);
            }
예제 #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;
 }