コード例 #1
0
        private void CopyThis(OSVersionInfo o)
        {
            // normal fields
            _osPlatformId = o._osPlatformId;

            _majorVersion = o._majorVersion;
            _minorVersion = o._minorVersion;
            _buildNumber  = o._buildNumber;
            _csdVersion   = o._csdVersion;

            // extended fields
            _osSuiteFlags  = o._osSuiteFlags;
            _osProductType = o._osProductType;

            _servicePackMajor = o._servicePackMajor;
            _servicePackMinor = o._servicePackMinor;
            _reserved         = o._reserved;

            // state fields
            IsLocked = false;
            ExtendedPropertiesAreSet = o.ExtendedPropertiesAreSet;
        }
コード例 #2
0
 public virtual void Copy(OSVersionInfo o)
 {
     CopyThis(o);
 }
コード例 #3
0
 public OSVersionInfo(OSVersionInfo o)
 {
     CopyThis(o);
 }