コード例 #1
0
ファイル: ZincScalarType.cs プロジェクト: KommuSoft/ZincOxide
 public ZincScalarType(ZincScalar scalar)
 {
     this.scalar = scalar;
 }
コード例 #2
0
ファイル: ZincPrintUtils.cs プロジェクト: falcong/ZincOxide
 /// <summary>
 /// Converts the given <see cref="ZincScalar"/> to its literal counterpart.
 /// </summary>
 /// <returns>The scalar literal of the given <see cref="ZincScalar"/>.</returns>
 /// <param name="scalar">The given <see cref="ZincScalar"/> to convert to its literal counterpart.</param>
 public static string ScalarLiteral(ZincScalar scalar)
 {
     Contract.Ensures(Contract.Result <string> () != null);
     Contract.Ensures(Contract.Result <string> ().Length > 0x00);
     return(scalar.ToString().ToLower());
 }
コード例 #3
0
ファイル: ZincScalarType.cs プロジェクト: falcong/ZincOxide
 public ZincScalarType(ZincScalar scalar)
 {
     this.scalar = scalar;
 }
コード例 #4
0
ファイル: ZincPrintUtils.cs プロジェクト: KommuSoft/ZincOxide
 /// <summary>
 /// Converts the given <see cref="ZincScalar"/> to its literal counterpart.
 /// </summary>
 /// <returns>The scalar literal of the given <see cref="ZincScalar"/>.</returns>
 /// <param name="scalar">The given <see cref="ZincScalar"/> to convert to its literal counterpart.</param>
 public static string ScalarLiteral(ZincScalar scalar)
 {
     Contract.Ensures (Contract.Result<string> () != null);
     Contract.Ensures (Contract.Result<string> ().Length > 0x00);
     return scalar.ToString ().ToLower ();
 }
コード例 #5
0
ファイル: ZincType.cs プロジェクト: falcong/ZincOxide
 public ZincType(ZincCompound compound, ZincScalar scalar)
 {
     this.data = (ulong)(0x03 * (byte)compound + (byte)scalar);
 }
コード例 #6
0
ファイル: ZincType.cs プロジェクト: falcong/ZincOxide
 public ZincType(ZincScalar scalar)
 {
     this.data = (byte)scalar;
 }
コード例 #7
0
ファイル: ZincType.cs プロジェクト: KommuSoft/ZincOxide
 public ZincType(ZincCompound compound, ZincScalar scalar)
 {
     this.data = (ulong)(0x03 * (byte)compound + (byte)scalar);
 }
コード例 #8
0
ファイル: ZincType.cs プロジェクト: KommuSoft/ZincOxide
 public ZincType(ZincScalar scalar)
 {
     this.data = (byte)scalar;
 }