src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Set the .NET version for this PE file
/// </summary>
/// <param name="nVer">.NET version</param>
Set the .NET version for this PE file
Set the . NET version for this PE file
public void SetNetVersion(NetVersion nVer) {
            versionInfo.netVersion = nVer;
            versionInfo.netVerString = MetaData.versions [(int)versionInfo.netVersion];
            if ((nVer == NetVersion.Whidbey40) || (nVer == NetVersion.Whidbey41)) {
                versionInfo.tsMinVer = 1;
            } else {
                versionInfo.tsMinVer = 0;
            }
            if (nVer == NetVersion.Whidbey50) {
                versionInfo.tsMajVer = 2;
            }
            GenericParam.extraField = nVer <= NetVersion.Whidbey40;
            if (Diag.DiagOn && GenericParam.extraField)
                Console.WriteLine("Writing extra field for GenericParams");
        }
public void SetNetVersion ( NetVersion nVer ) { versionInfo . netVersion = nVer ; versionInfo . netVerString = MetaData . versions [ ( int ) versionInfo . netVersion ] ; if ( ( nVer == NetVersion . Whidbey40 ) || ( nVer == NetVersion . Whidbey41 ) ) { versionInfo . tsMinVer = 1 ; } else { versionInfo . tsMinVer = 0 ; } if ( nVer == NetVersion . Whidbey50 ) { versionInfo . tsMajVer = 2 ; } GenericParam . extraField = nVer <= NetVersion . Whidbey40 ; if ( Diag . DiagOn && GenericParam . extraField ) Console . WriteLine ( " " ) ; }
Set the .NET version for this PE file
Set the . NET version for this PE file
nVer
NetVersion
None