/// <summary> /// Creates an <see cref="INumericColumnProxy"/> from a given column. /// </summary> /// <param name="column">The column.</param> /// <returns>An instance of <see cref="INumericColumnProxy"/>. The type of instance returned depends on the type of the provided column (e.g. whether the column is part of the document or not).</returns> public static INumericColumnProxy FromColumn(INumericColumn column) { if (column is IDocumentLeafNode) { return(NumericColumnProxy.FromColumn(column)); } else { return(NumericColumnProxyForStandaloneColumns.FromColumn(column)); } }
public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var s = (NumericColumnProxy)o ?? new NumericColumnProxy(info); object baseobj = info.GetBaseValueEmbedded(s, "AltaxoBase,Altaxo.Main.DocNodeProxy,0", parent); // deserialize the base class if (!object.ReferenceEquals(s, baseobj)) { return(NumericColumnProxyForStandaloneColumns.FromColumn((INumericColumn)baseobj)); } else { return(s); } }