Supports() публичный Метод

Returns true if the current framework matches the one supplied as an argument. Two frameworks match if their runtime types are the same or either one is RuntimeType.Any and all specified version components are equal. Negative (i.e. unspecified) version components are ignored.
public Supports ( RuntimeFramework target ) : bool
target RuntimeFramework The RuntimeFramework to be matched.
Результат bool
Пример #1
0
        private bool IsRuntimeSupported(RuntimeType runtime, string versionSpecification)
        {
            Version version = versionSpecification == null
                ? RuntimeFramework.DefaultVersion
                : new Version(versionSpecification);

            RuntimeFramework target = new RuntimeFramework(runtime, version);

            return(_rt.Supports(target));
        }
 public bool CanMatchRuntimes(RuntimeFramework f1, RuntimeFramework f2)
 {
     return f1.Supports(f2);
 }
Пример #3
0
 public bool CanMatchRuntimes(RuntimeFramework f1, RuntimeFramework f2)
 {
     return(f1.Supports(f2));
 }