本文整理汇总了C#中Identity.Count方法的典型用法代码示例。如果您正苦于以下问题:C# Identity.Count方法的具体用法?C# Identity.Count怎么用?C# Identity.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Identity
的用法示例。
在下文中一共展示了Identity.Count方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoInitialise
protected override void DoInitialise(bool reinitialising)
{
base.DoInitialise(reinitialising);
if (reinitialising)
{
return;
}
var cellId = new Identity[1];
var id = "Center";
cellId[0] = new Identity(id, id, id);
var cellX = new double[1];
var cellY = new double[1];
cellX[0] = 0.0;
cellY[0] = 0.0;
var spatialCenter = new SpatialDefinition(new Describes("Center", string.Format("Center ({0};{1})", cellX, cellY)), cellId.Count());
var center = new ElementSetPoints(spatialCenter, cellId, cellX, cellY);
// outputs
var converterX = new ValueSetConverterTimeEngineDouble("_X", double.NegativeInfinity, 1, ValueSetConverterTimeRecordBase<double>.InterpolationTemporal.Linear);
var outX = new OutputSpaceTime(GetIdentity(OutputIdentity.X), QuantitiesSI.Length("X"), center, this, converterX);
Add(outX);
var converterY = new ValueSetConverterTimeEngineDouble("_Y", double.NegativeInfinity, 1, ValueSetConverterTimeRecordBase<double>.InterpolationTemporal.Linear);
var outY = new OutputSpaceTime(GetIdentity(OutputIdentity.Y), QuantitiesSI.Length("Y"), center, this, converterY);
Add(outY);
var converterZ = new ValueSetConverterTimeEngineDouble("_Z", double.NegativeInfinity, 1, ValueSetConverterTimeRecordBase<double>.InterpolationTemporal.Linear);
var outZ = new OutputSpaceTime(GetIdentity(OutputIdentity.Z), QuantitiesSI.Length("Z"), center, this, converterZ);
Add(outZ);
// inputs
var converterA = new ValueSetConverterTimeEngineDouble("_A", double.NegativeInfinity, 1, ValueSetConverterTimeRecordBase<double>.InterpolationTemporal.Linear);
var inA = new InputSpaceTime(GetIdentity(InputIdentity.A), QuantitiesSI.Length("A"), center, this, converterA);
Add(inA);
var inB = new InputSpaceTime(GetIdentity(InputIdentity.B), QuantitiesSI.Length("B"), center, this, converterA);
Add(inB);
var inC = new InputSpaceTime(GetIdentity(InputIdentity.C), QuantitiesSI.Length("C"), center, this, converterA);
Add(inC);
}