Microsoft.Tools.WindowsInstaller.Result.operator C# (CSharp) 메소드

operator() 공개 정적인 메소드

Combines results while preserving their semantics.
public static operator ( ) : Result
리턴 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;
        }