Microsoft.Tools.WindowsInstaller.Result.operator C# (CSharp) Méthode

operator() public static méthode

Combines results while preserving their semantics.
public static operator ( ) : Result
Résultat Result
        public static Result operator |(Result x, Result y)
        {
            if (null == x)
            {
                throw new ArgumentNullException("x");
            }

            if (null == y)
            {
                throw new ArgumentNullException("y");
            }

            var result = new Result();

            result._rebootInitiated = x._rebootInitiated | y._rebootInitiated;
            result._rebootRequired = result._rebootInitiated | x._rebootRequired | y._rebootRequired;

            return result;
        }