当前位置: 首页>>代码示例>>C#>>正文


C# Altaxo.CloseArray方法代码示例

本文整理汇总了C#中Altaxo.CloseArray方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.CloseArray方法的具体用法?C# Altaxo.CloseArray怎么用?C# Altaxo.CloseArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.CloseArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				double offset = info.GetDouble("DashOffset");
				int count = info.OpenArray("Pattern");
				double[] pattern = new double[count];
				for (int i = 0; i < pattern.Length; ++i)
					pattern[i] = info.GetDouble("e");
				info.CloseArray(count);

				return DeserializeV0(new Custom(offset, pattern), info, parent);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:Custom.cs

示例2: Deserialize

		public object Deserialize(object obj, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
		{
			int count = info.OpenArray("List");
			var s = null != obj ? (System.Collections.Generic.List<object>)obj : new System.Collections.Generic.List<object>(count);
			s.Clear();
			for (int i = 0; i < count; ++i)
				s.Add(info.GetValue("e", parent));
			info.CloseArray(count);

			return s;
		}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:SystemCollectionsSerialization.cs

示例3: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = null != o ? (ClosedCardinalSpline)o : new ClosedCardinalSpline(info);
				info.GetBaseValueEmbedded(s, typeof(ClosedCardinalSpline).BaseType, parent);
				s._tension = info.GetDouble("Tension");
				s._curvePoints.Clear();
				int count = info.OpenArray("Points");
				for (int i = 0; i < count; i++)
					s._curvePoints.Add((PointD2D)info.GetValue("e", s));
				info.CloseArray(count);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:ClosedCardinalSpline.cs

示例4: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				int numberOfLevelsDown = info.GetInt32("LevelsDown");

				int count = info.OpenArray("Path");
				var arr = new string[count];
				for (int i = 0; i < count; i++)
					arr[i] = info.GetString();
				info.CloseArray(count);

				return new RelativeDocumentPath(numberOfLevelsDown, arr);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:RelativeDocumentPath.cs

示例5: SDeserialize

			protected virtual LinkedScaleCollection SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				LinkedScaleCollection s = null != o ? (LinkedScaleCollection)o : new LinkedScaleCollection();

				int count = info.OpenArray("Properties");
				s._linkedScales = new LinkedScale[count];
				for (int i = 0; i < count; ++i)
					s.SetLinkedScale((LinkedScale)info.GetValue("e", s), i);
				info.CloseArray(count);

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:LinkedScaleCollection.cs

示例6: Deserialize

      public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        FitEnsemble s = o!=null ? (FitEnsemble)o : new FitEnsemble();

        int arraycount = info.OpenArray();
        for(int i=0;i<arraycount;++i)
          s.Add( (FitElement)info.GetValue(s) );
        info.CloseArray(arraycount);

        s.CollectParameterNames();

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:FitEnsemble.cs

示例7: SDeserialize

			protected virtual AdditionalTicks SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				AdditionalTicks s = null != o ? (AdditionalTicks)o : new AdditionalTicks();

				int count;

				count = info.OpenArray("ByValues");
				for (int i = 0; i < count; i++)
					s._additionalTicks.Add((AltaxoVariant)info.GetValue("e", s));
				info.CloseArray(count);

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:13,代码来源:AdditionalTicks.cs

示例8: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = null != o ? (ShapeGroup)o : new ShapeGroup();
				info.GetBaseValueEmbedded(s, typeof(ShapeGroup).BaseType, parent);

				int count = info.OpenArray("Elements");
				var list = new GraphicBase[count];
				for (int i = 0; i < count; i++)
					list[i] = (GraphicBase)info.GetValue("e", s);
				info.CloseArray(count);
				s.AddRange(list);

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:14,代码来源:ShapeGroup.cs

示例9: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				int count = info.OpenArray("RowSelections");

				var list = new List<IRowSelection>();

				for (int i = 0; i < count; ++i)
				{
					list.Add((IRowSelection)info.GetValue("e", parent));
				}

				info.CloseArray(count);

				return new IntersectionOfRowSelections(info, list);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:15,代码来源:IntersectionOfRowSelections.cs

示例10: SDeserialize

			protected virtual AsciiImportDataSource SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				var s = (o == null ? new AsciiImportDataSource() : (AsciiImportDataSource)o);
				s._isDeserializationInProgress = true;
				s.ChildSetMember(ref s._importOptions, (IDataSourceImportOptions)info.GetValue("ImportOptions", s));
				s.ChildSetMember(ref s._asciiImportOptions, (AsciiImportOptions)info.GetValue("AsciiImportOptions", s));
				var count = info.OpenArray("AsciiFiles");
				for (int i = 0; i < count; ++i)
					s._asciiFiles.Add((AbsoluteAndRelativeFileName)info.GetValue("e", s));
				info.CloseArray(count);

				info.AfterDeserializationHasCompletelyFinished += s.EhAfterDeserializationHasCompletelyFinished;

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:15,代码来源:AsciiImportDataSource.cs

示例11: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        GraphicCollection s = null!=o ? (GraphicCollection)o : new GraphicCollection();

        int count = info.OpenArray();
        for(int i=0;i<count;i++)
        {
          GraphicBase go = (GraphicBase)info.GetValue(s);
          s.Add(go);
        }
        info.CloseArray(count);
        
        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:15,代码来源:GraphicCollection.cs

示例12: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				int count = info.OpenArray("ColorSets");
				var colorSets = new Tuple<IColorSet, bool>[count];
				for (int i = 0; i < count; ++i)
				{
					info.OpenElement(); // e
					colorSets[i] = new Tuple<IColorSet, bool>((IColorSet)info.GetValue("ColorSet", null), info.GetBoolean("IsPlotColorSet"));
					info.CloseElement();
				}

				info.CloseArray(count);

				return new ColorSetBag(colorSets);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:15,代码来源:ColorSetBag.cs

示例13: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        WorksheetLayoutCollection s = null!=o ? (WorksheetLayoutCollection)o : new WorksheetLayoutCollection();

        int count;
        count = info.OpenArray(); // TableLayouts
        
        for(int i=0;i<count;i++)
        {
          WorksheetLayout style = (WorksheetLayout)info.GetValue("WorksheetLayout",s);
          s.m_TableLayouts.Add(style.Guid,style);
        }
        info.CloseArray(count);

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:17,代码来源:WorksheetLayoutCollection.cs

示例14: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				AscendingIntegerCollection s = null != o ? (AscendingIntegerCollection)o : new AscendingIntegerCollection();

				int count = info.OpenArray();

				for (int i = 0; i < count; i++)
				{
					info.OpenElement();
					int rangestart = info.GetInt32("Start");
					int rangecount = info.GetInt32("Count");
					info.CloseElement();
					s.AddRange(rangestart, rangecount);
				}
				info.CloseArray(count);
				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:17,代码来源:AscendingIntegerCollection.cs

示例15: Deserialize

      public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        FitElement s = o!=null ? (FitElement)o : new FitElement();

        s.FitFunction = (IFitFunction)info.GetValue("FitFunction",s);

        int numRows = info.GetInt32("NumberOfRows");
        int firstRow = info.GetInt32("FirstRow");
        s._rangeOfRows = PositiveIntegerRange.NewFromFirstAndCount(firstRow,numRows);

        int arraycount = info.OpenArray();
        s._independentVariables = new NumericColumnProxy[arraycount];
        for(int i=0;i<arraycount;++i)
          s._independentVariables[i] = (NumericColumnProxy)info.GetValue(s);
        info.CloseArray(arraycount);

        arraycount = info.OpenArray();
        s._dependentVariables = new NumericColumnProxy[arraycount];
        for(int i=0;i<arraycount;++i)
          s._dependentVariables[i] = (NumericColumnProxy)info.GetValue(s);
        info.CloseArray(arraycount);


        arraycount = info.OpenArray();
        s._errorEvaluation = new IVarianceScaling[arraycount];
        for(int i=0;i<arraycount;++i)
          s._errorEvaluation[i] = (IVarianceScaling)info.GetValue(s);
        info.CloseArray(arraycount);

        info.GetArray("ParameterNames",out s._parameterNames);
        for(int i=0;i<s._parameterNames.Length;++i)
          if(s._parameterNames[i]==string.Empty)
            s._parameterNames[i]=null; // serialization can not distinguish between an empty string and a null string

        s._parameterNameStart = info.GetString("ParameterNameStart");
        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:37,代码来源:FitElement.cs


注:本文中的Altaxo.CloseArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。