Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the CkVersion class.
 /// </summary>
 /// <param name='major'>Major version number (the integer portion of the version)</param>
 /// <param name='minor'>Minor version number (the hundredths portion of the version)</param>
 public CkVersion(byte major, byte minor)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
         {
             _params40 = new HighLevelAPI40.MechanismParams.CkVersion(major, minor);
         }
         else
         {
             _params41 = new HighLevelAPI41.MechanismParams.CkVersion(major, minor);
         }
     }
     else
     {
         if (Platform.StructPackingSize == 0)
         {
             _params80 = new HighLevelAPI80.MechanismParams.CkVersion(major, minor);
         }
         else
         {
             _params81 = new HighLevelAPI81.MechanismParams.CkVersion(major, minor);
         }
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the CkVersion class.
        /// </summary>
        /// <param name='ckVersion'>Platform specific CkVersion</param>
        internal CkVersion(HighLevelAPI80.MechanismParams.CkVersion ckVersion)
        {
            if (ckVersion == null)
            {
                throw new ArgumentNullException("ckVersion");
            }

            _params80 = ckVersion;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the CkVersion class.
 /// </summary>
 /// <param name='major'>Major version number (the integer portion of the version)</param>
 /// <param name='minor'>Minor version number (the hundredths portion of the version)</param>
 public CkVersion(byte major, byte minor)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
             _params40 = new HighLevelAPI40.MechanismParams.CkVersion(major, minor);
         else
             _params41 = new HighLevelAPI41.MechanismParams.CkVersion(major, minor);
     }
     else
     {
         if (Platform.StructPackingSize == 0)
             _params80 = new HighLevelAPI80.MechanismParams.CkVersion(major, minor);
         else
             _params81 = new HighLevelAPI81.MechanismParams.CkVersion(major, minor);
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the CkVersion class.
        /// </summary>
        /// <param name='ckVersion'>Platform specific CkVersion</param>
        internal CkVersion(HighLevelAPI80.MechanismParams.CkVersion ckVersion)
        {
            if (ckVersion == null)
                throw new ArgumentNullException("ckVersion");

            _params80 = ckVersion;
        }