コード例 #1
0
ファイル: DeepCopy.cs プロジェクト: henriquetomaz/nhapi-1
 /// <summary> Copies data from the "from" Type into the "to" Type.  Either Type may be
 /// a Primitive, Composite, or Varies.  If a Varies is provided, the operation is
 /// performed on the result of calling its getData() method.  A Primitive may be
 /// copied into a Composite, in which case the value is copied into the first
 /// component of the Composite.  A Composite may be copied into a Primitive,
 /// in which case the first component is copied.  Given Composites with different
 /// numbers of components, the first components are copied, up to the length
 /// of the smaller one.
 /// </summary>
 public static void  copy(model.Type from, model.Type to)
 {
     for (int i = 1; i <= Terser.numComponents(from); i++)
     {
         for (int j = 1; j <= Terser.numSubComponents(from, i); j++)
         {
             System.String val = Terser.getPrimitive(from, i, j).Value;
             Terser.getPrimitive(to, i, j).Value = val;
         }
     }
 }
コード例 #2
0
ファイル: Terser.cs プロジェクト: henriquetomaz/nhapi-1
 private void  InitBlock(Terser enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
コード例 #3
0
ファイル: Terser.cs プロジェクト: snosrap/nhapi
 private void InitBlock(Terser enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
コード例 #4
0
ファイル: Terser.cs プロジェクト: henriquetomaz/nhapi-1
 public PathSpec(Terser enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }
コード例 #5
0
ファイル: Terser.cs プロジェクト: snosrap/nhapi
 public PathSpec(Terser enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }