NUnit.Framework.Internal.RuntimeFramework.RuntimeFramework C# (CSharp) Method

RuntimeFramework() public method

Construct from a runtime type and version. If the version has two parts, it is taken as a framework version. If it has three or more, it is taken as a CLR version. In either case, the other version is deduced based on the runtime type and provided version.
public RuntimeFramework ( RuntimeType runtime, Version version ) : System
runtime RuntimeType The runtime type of the framework
version Version The version of the framework
return System
        public RuntimeFramework( RuntimeType runtime, Version version)
        {
            Runtime = runtime;

            if (version.Build < 0)
                InitFromFrameworkVersion(version);
            else
                InitFromClrVersion(version);

            DisplayName = GetDefaultDisplayName(runtime, version);
        }