System.Text.RegularExpressions.CILCompiler.MakeFlags C# (CSharp) Method

MakeFlags() static private method

static private MakeFlags ( bool negate, bool ignore, bool reverse, bool lazy ) : OpFlags
negate bool
ignore bool
reverse bool
lazy bool
return OpFlags
		static OpFlags MakeFlags (bool negate, bool ignore, bool reverse, bool lazy) {
			OpFlags flags = 0;
			if (negate) flags |= OpFlags.Negate;
			if (ignore) flags |= OpFlags.IgnoreCase;
			if (reverse) flags |= OpFlags.RightToLeft;
			if (lazy) flags |= OpFlags.Lazy;

			return flags;
		}